flash erase question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

flash erase question

2,117件の閲覧回数
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 返答(返信)

618件の閲覧回数
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 件の賞賛
返信

618件の閲覧回数
denny_george
Contributor I
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 件の賞賛
返信

618件の閲覧回数
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 件の賞賛
返信