Hello
I assume you are using CW HC12 V4.5. AM I right?
There is a command AEFSKIPERASING available allowing you to do that.
Extract from {Install}\Release_Notes\HC12\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."
So basically do the following:
- Start the debugger
- Enter command FLASH
- Check which is the block number associated with the EEPROM block.
- Edit your startup.cmd file and add the AEFSKIPERASING command there.
I hope this helps.
CrasyCat