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.