flash erase question

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

flash erase question

2,118 Views
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

Labels (1)
0 Kudos
Reply
3 Replies

619 Views
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 Kudos
Reply

619 Views
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 Kudos
Reply

619 Views
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 Kudos
Reply