Skip to main content
Visitor II
January 18, 2007
Question

Errantly writing to flash as though it is RAM

  • January 18, 2007
  • 1 reply
  • 580 views
Posted on January 18, 2007 at 17:19

Errantly writing to flash as though it is RAM

    This topic has been closed for replies.

    1 reply

    wjohnsonAuthor
    Visitor II
    January 18, 2007
    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.