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

Bootloader - combine with object program in HEX?

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



Joined: 08 Sep 2003
Posts: 197
Location: Omaha NE USA

View user's profile Send private message Send e-mail Visit poster's website

Bootloader - combine with object program in HEX?
PostPosted: Tue Mar 02, 2010 12:19 pm     Reply with quote

Hi guys.

I'm using a slightly modified version of the CCS boot loader, which loads my target program from a USB drive. Everything works perfectly. I have a small HEX file for the bootloader, and a large HEX file for the target program. At compile time, I have a #define that tells the compiler whether to build the bootloader or the main program.

What I'd like to do is generate one HEX file with the bootloader AND the target program, so I don't have to bootload every device I build. I don't particularly care if the compiler does it, or if I manually splice HEX files together.

So... pointers? Tips? Howtos?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 02, 2010 12:25 pm     Reply with quote

See these threads:
http://www.ccsinfo.com/forum/viewtopic.php?t=38730
http://www.ccsinfo.com/forum/viewtopic.php?t=29606
dbotkin



Joined: 08 Sep 2003
Posts: 197
Location: Omaha NE USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Mar 02, 2010 1:52 pm     Reply with quote

Your search criteria must have been far better than mine, which returned several hundred hits. Probably would have helped if I'd known that #import was the secret sauce. :) That did the trick perfectly.

Thanks!
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