cancel
Showing results for 
Search instead for 
Did you mean: 

Errantly writing to flash as though it is RAM

wjohnson
Associate II
Posted on January 18, 2007 at 17:19

Errantly writing to flash as though it is RAM

1 REPLY 1
wjohnson
Associate II
Posted on January 18, 2007 at 17:19

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.