|
|
View previous topic :: View next topic |
Author |
Message |
davidnclare
Joined: 08 Sep 2010 Posts: 9
|
Yet Another Bootloader Question |
Posted: Thu Nov 17, 2016 8:15 am |
|
|
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: 19540
|
|
Posted: Thu Nov 17, 2016 9:12 am |
|
|
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. |
|
|
davidnclare
Joined: 08 Sep 2010 Posts: 9
|
|
Posted: Fri Nov 18, 2016 5:09 am |
|
|
Thanks, I will try that today. |
|
|
|
|
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
|