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

Yet Another Bootloader Question

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



Joined: 08 Sep 2010
Posts: 9

View user's profile Send private message

Yet Another Bootloader Question
PostPosted: Thu Nov 17, 2016 8:15 am     Reply with quote

Hi All,
After getting the bootloader working, my application is quite large and takes too long to load via the bootloader, but will be perfect when the board is in use.
So, my question is can you load the bootloader and application together, via the ICD.
Ttelmah



Joined: 11 Mar 2010
Posts: 19553

View user's profile Send private message

PostPosted: Thu Nov 17, 2016 9:12 am     Reply with quote

Yes.

There are various ways of building the file needed. Honestly the simplest, is to use MPLAB (one of the older versions preferably), then load the bootloader hex file, and then the program hex file, and export the result.

Other method needs a little fiddling.

Build the bootloader, with #fuses=none
Ensure the clock setting matches your real fuses.

Then #import the bootloader into the application. Line needed should be:
Code:

#IMPORT (FILE=yourbootloader.hex,HEX,RANGE=0:LOADER_SIZE)

The application needs the correct fuses and clock settings before this.

Now using #fuses=none, prevents the compiler from complaining when the fuses import (though you are specifying not to import this range, it still does so...).

The resulting output file from compiling the application like this, will include the bootloader. Smile
davidnclare



Joined: 08 Sep 2010
Posts: 9

View user's profile Send private message

PostPosted: Fri Nov 18, 2016 5:09 am     Reply with quote

Thanks, I will try that today.
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