9S12 EEPROM programming questions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9S12 EEPROM programming questions

2,304 Views
TSCeric
Contributor I
I think I have routines that can program the EEPROM on an MC9S12XDT512CAA.  I am using the DEMO9S12XDT512 to prototype with.  However when I load my program the True-Time Simulator and Realtime Debugger shows the EEPROM at 0x0800 to be erased.
 
Is the EEPROM being erased by the loader or are my routines not actually working?  Can this erasing be turned off so I can be sure my programming is working?
 
Thanks :smileyhappy:
Labels (1)
0 Kudos
Reply
3 Replies

889 Views
TSCeric
Contributor I
I would like to skip erasing all 4k of the EEPROM.  What blocks do I specify?  I cannot find a description in the documentation.
 
FLASH AEFSKIPERASING ???
 
Thanks
 
0 Kudos
Reply

889 Views
CrasyCat
Specialist III
Hello
 
Depends on the version and MCU you are using.
Once you are connected to the board enter command FLASH. This will list all Non volatile Memory block available.
 
The block number is also specified in there.
 
For more information on AEFSKIPERASING look at {Install}\help\PDF\Debugger_HC12.pdf Chapter "Book IV Commands and environment Variables" section ""Connection-Specific  Commands" -> "NMVC commands" (on V4.7 installation layout).
 
You can also find information in {Install}\Release_Notes\HC12\Notes_debugger_P&E_Multilink_Cyclone_Pro.txt (also from V4.7 installation layout).
 
I hope this helps.
 
CrasyCat
0 Kudos
Reply

889 Views
CrasyCat
Specialist III
Hello
 
When you download code to the board, the debugger is performing a bulk erase of the whole Flash and EEPROM per default.
 
You can tell the compiler you do not want to erase content of EEPROM using the command AEFSKIPERASING.
 
Please refer to this thread or to FAQ-28563 for more information.
 
FAQ-28563 can be found on www.freescale.com web site.
 
 
CrasyCat
0 Kudos
Reply