|
|
|||||||
|
Thanks Clyde! The macro: EEPROM_RESERVE_BLOCKS(1); Does the trick. As you state, it reserves the block, so that no code is placed in that block, and therefore not over written. I guess what threw me off in the beginning, was that when I declared the constant variable at a specific address, the linker would move the code around so that there was code always in the same block as my constant variable. I presume this is happening so that LJMP can be avoided within the compiler generated code. Aaron |