Hello
I assume you are using a Multilink or Cyclone Pro cable for debugging.
If you are using CodeWarrior for HC12 V4.5
Am I right?
If this is the case you can use the command AEFSKIPERASING to prevent EEPROM to be erased when you download your application to FLASH.
Extract from Notes_debugger_icd12.txt:
"The new command AEFSKIPERASING has been created to specify non volatile memory blocks to protect from mass erasing at application loading.
The command should be placed in a "Startup" command file.
The command syntax is:
FLASH AEFSKIPERASING <blockNo>
with blockNo = {number["-"number][","]}
For example, "FLASH AEFSKIPERASING 0,2-4" avoids erasing flash blocks 0,2,3,4.
Reminder: Flash (and non volatile memory) modules and numbers can be displayed when typing the FLASH command in the Command window. Also the Flash/Non Volatile Memory dialog list displays all modules starting from block number 0."
If you are using an earlier version of the tools, check the release notes for ICD12 to make sure the command is supported there.
The release notes can be found in {Install}\Release_Notes\HC12\CW_Tools\HC12\Notes_debugger_icd12.txt.
I hope this helps.
CrasyCat