Hi all, The Overlay mechanism implemented by Keil is ingenious. Moreover if we want add some functionnality in Eeprom without change ROM code is to my mind impossible because DATA GROUP area will be modified with new local variables used in our new functions in Eeprom. What do you think about this? Thanks a lot, Daniel
One idea is to make the ROM code a library, whose segments are at fixed addresses. If the system wakes up in the ROM code, then the 1st call to the EEPROM has to fix the stack pointer. This scheme will not overlay the data segments of the program as a whole, but should allow the ROM data segments to be overlayed and the EEPROM data segments overlayed. Of course the entry points into the EEPROM are at fixed locations.