2007-01-18 08:19 AM
Errantly writing to flash as though it is RAM
2007-01-18 08:19 AM
I'm using an ST10F276 micro.
What is supposed to happen if code accidentally (due to a bad pointer) writes directly to flash as though it is a RAM area? It seems to tolerate some amount of it, but if I do 10 straight writes to flash addresses (writing to addresses 0 through 10) once every 100 ms, a reset occurs after 300 ms. If I do any less than this, it does not reset. Is this expected? Obviously, the solution is to not write to flash like this, but I was trying to figure out a problem, and ran across this. It seems to be intermittent whether it resets or not.