flash erase question

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

flash erase question

2,644 次查看
oscarm
Contributor I

hi, i have a program that can write in the internal flash of my mc9s08gt60a mcu, but i have a problem when i try to erase a page of the flash, because when the mcu finish the erase process, it get out of the normal process of functionement that i have program in it, and stays in a state that doesn't do anything, and when a reset it, it works again and the page of the flash is correctly erased.
so, can anyone give me any advice to avoid this strange behavior of the mcu.

thanks

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

1,145 次查看
GTE
Contributor I
 Try to disable the COP.        
I hope that you are executing   the record code and deleting code of the flash from the ram .
When the flash is deleted, you can't acces to it.
Greetings GTE
0 项奖励
回复

1,145 次查看
denny_george
Contributor III
Hi Oscram,
 
Some checkpoints:
 
1)Is your program really writting something into FLASH ? Please recheck this point.
 
2)Also check if bit is set FACCERR to make sure whether programming/erasing procedure is right.
0 项奖励
回复

1,145 次查看
peg
Senior Contributor IV
Hi oscarm,

Could it be the COP?

Might need to see your code for this to take it any further.

0 项奖励
回复