Using the latest C51 tools. I'm having to write an IAP (in application programming) bootloader of sorts and need to make sure it lies in a known segment. How can I allocate a given segment to my IAP code such that no other code besides the IAP code is linked into the same segment? Thanks In advance David
The easy way is to put all the IAP code into its own .c file. Each file gets its own segment name, of the form ?CO?FILENAME.
That's a start, but you also need to create a linker file to only allow the bootloader segment into the saved Flash memory segment.
Did you ever get a good answer on this one? I need to do the same thing. Thanks. -Erik
Sounds like the answer can be found in the Knowledgebase. For example: http://www.keil.com/support/docs/2670.htm