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,
Are the following guesses correct?
You currently have a system that has both rom and eeprom in it. The interrupt jmp table in eeprom. You currently have code the resides in both the rom and eeprom. You want to modify the eeprom part and leave the rom part alone.
I already generated ROM code and i would to use Eeprom memory to add some fucntionality but without any change of ROM code since it is already loaded. But when i add more than 1 local variable in my function the ROM code changed and cause problemes after link.
Split your Project into two.
One for your ROM and one for EEPROM.
After generating ROM-Project look the used resources in DATA, XDATA etc. These had to be excluded from EEPROM-Project.
And for using functions in EEPROM use adresstabel with entrypoints.
View all questions in Keil forum