I've read through the CCS bootloader examples ex_bootloader.c and ex_bootload.c and I can understand the program flow. Where I get confused is if I use interrupts in my main program. What happens with them? Do these lines in ex_bootloader.c automatically "take care" of any interrupts I use in my main program so that the interrupts will "fire" normally without me having to do any #org-ing or anything out of the ordinary?
Will these two interrupts "fire" when serial data is received by the UART and when timer 0 rolls over? Do I require anything more to assure that the interrupts don't get "lost"?
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
Posted: Tue Dec 21, 2010 4:21 pm
Yep -- the bootloader relocates your ISR code to its new location and everything works as normal. I'm using a USB bootloader on one project, and a heavily customized one in another to load firmware fro a USB drive (via VNC1L chip). You pretty much never even know it's there.
newguy
Joined: 24 Jun 2004 Posts: 1907
Posted: Thu Jan 06, 2011 4:53 pm
Finally got around to this and you're right - very simple & transparent - just write a program like you would normally do, but include the bootloader header 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