CCS Bootloader - programming Bootloader AND application?
Posted: Thu Aug 09, 2007 2:12 am
Hello
I use the CCS Bootloader - which works fine.
But is there a way to modify it so that you can programm the bootloader and the programm in one step via a programmer
So that if I programm the Bootloader I have the application included and can then change the first programmed application via RS232 but not the bootloader.
Can I simply include my main.c into the bootloader at a location where it can get overwritten by a new programm version via RS232 or somthing like that?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Thu Aug 09, 2007 3:13 am
Quote:
Can I simply include my main.c into the bootloader at a location where it can get overwritten by a new programm version via RS232 or somthing like that?
This is possible. In ex_bootloader.c replace application() by an include of your main.c. You will also have to rename your main() to application(), or even better make this dependent on the _bootloader being defined.
Another option that looks promising but I haven't tried yet is to create the bootloader and your application as seperate programs (but at the correct final program addresses) and then combine these two afterwards if needed.
Merging two applications into one Intel Hex file
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