CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

OTAP via Bluetooth Low Energy takes too long.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Josep Robert



Joined: 27 Mar 2018
Posts: 25

View user's profile Send private message

OTAP via Bluetooth Low Energy takes too long.
PostPosted: Thu Jun 21, 2018 8:54 am     Reply with quote

(OTAP: Over the air programming)

I've added a Bluetooth Low Energy module to a board based on a PIC that has 128K flash program memory.

I want to update the firmware from a mobile phone using Bluetooth Low Energy. The hex file is 250KBytes and the update process last for more than 20 minutes!!!

Is there any way to divide my code in some smaller independent modules in order to update only a small part of code?

Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Thu Jun 21, 2018 12:10 pm     Reply with quote

First thing to do, is ensure you actually send the data in multiples of the erase block size of the chip. Whatever you do don't just send single Intel hex lines. Many larger chips like this will have erase block sizes like 512words. It is the erase that takes the most time, and if you erase a block and write this it'll be far quicker than if you are sending smaller blocks.
Your programming code at the source end can simply do a compare and only send blocks that have changed.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group