9S12 EEPROM programming questions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

9S12 EEPROM programming questions

2,305 次查看
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:
标签 (1)
0 项奖励
回复
3 回复数

890 次查看
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 项奖励
回复

890 次查看
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 项奖励
回复

890 次查看
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 项奖励
回复