Skip to main content
bengriffiths9
Associate II
September 1, 2010
Question

FLASH_ProgramWord not working / Memory Protection

  • September 1, 2010
  • 5 replies
  • 1069 views
Posted on September 01, 2010 at 18:22

FLASH_ProgramWord not working / Memory Protection

    This topic has been closed for replies.

    5 replies

    damh
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    You should be very careful with rewriting addresses. After erasing you can write every address [n*2] with 16 bit data exactly one time.

    There are only two exceptions:

    - rewriting with the same value is ignored

    - rewriting with 0x0000 is always possible

    stforum2
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    You have to unlock the flash first.

    bengriffiths9
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    Cheers

    Linda
    Associate III
    March 8, 2015
    Posted on March 08, 2015 at 13:09

    Why only can rewrite once?

    Thanks

    Tesla DeLorean
    Guru
    March 8, 2015
    Posted on March 08, 2015 at 14:54

    Why only can rewrite once?

    Because that's how flash memory works, it takes a long time to write or erase, because it's changing a charge state of a cell. You erase it to ONE state, and you can change it to a ZERO state once, then you need to erase it again.

    http://computer.howstuffworks.com/flash-memory.htm

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..