EEPROM mass erases while burning automatically

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

EEPROM mass erases while burning automatically

1,623 次查看
simar
Contributor III

I'm facing a big problem here now. Whenever I write and read EEPROM every thingh works fine but as soon as I remove the write code and burn it to only read the EEPROM that I have written the last time, it shows -1.#QNAN to which I store the EEPROM value.

 

I think during buring the code while debugging EEPROM mass erase itself and so all bits are resetted to one. So I get a QNAN. Is there any solution. I'm using latest code warroir and mc9s12xd256 MCU and cyclone USB debugger..

标签 (1)
0 项奖励
回复
5 回复数

990 次查看
kef
Specialist I

By default CW debugger caches contents of read only memories (flash and EEPROM) and never updates/refreshes them. You may need to edit Debugging Memory Map in debugger. There must be such menu item in Multilink menu. You should find relevant memory block and in properties check "refresh when halting".

Anyway EEPROM isn't selferasing.

0 项奖励
回复

990 次查看
simar
Contributor III

 

Thanks Keff for your reply though

kef wrote:

By default CW debugger caches contents of read only memories (flash and EEPROM) and never updates/refreshes them. You may need to edit Debugging Memory Map in debugger. There must be such menu item in Multilink menu. You should find relevant memory block and in properties check "refresh when halting"

Anyway EEPROM isn't selferasing.


 

I did not get what is 'refresh when halting". Is it that by choosing it, I will be able to remember the data in relevent blocks in eeporm, that was there before debugging but washes after debugging for me??

 

Surely my EEPROM does not 'self erase' if I write a value I can read it, modify it and even after I reset(OFF then ON) the processor I can read it again. Only when Reprogram the processor my data is lost..

 

0 项奖励
回复

990 次查看
simar
Contributor III

Keff isn't there a way in which the EEPROM does not erase automatically while debugging/burning..

0 项奖励
回复

990 次查看
kef
Specialist I

I misunderstood you. You want to make debugger not erasing everything on every load of program to the target, right? If so, then check CrasyCat message in this thread https://community.freescale.com/message/22481#22481 . Or even search for FLASH AEFSKIPERASING debugger command and how to use it.

0 项奖励
回复

990 次查看
simar
Contributor III

 


kef wrote:

I misunderstood you. You want to make debugger not erasing everything on every load of program to the target, right? If so, then check CrasyCat message in this thread https://community.freescale.com/message/22481#22481 . Or even search for FLASH AEFSKIPERASING debugger command and how to use it.


 

Thanks Jeff, for the post. I made it myself though :smileyhappy:

you can also get help in codewarrior help and then searching for eeprom. Then from the listed topics choose Flash Programming...

 

or

 

Follow

File> Configration >Load >Advanced

0 项奖励
回复