Skip to main content
Nickname400_O
Visitor II
June 15, 2013
Question

Problem with erasing and overwriting FLASH data

  • June 15, 2013
  • 1 reply
  • 528 views
Posted on June 15, 2013 at 12:58

Hi,

After writing in FLASH using FLASH_ProgramWord(uint32_t Address,Data). I can't overwrite that address data completely using FLASH_ProgramWord(Address,0xFFFFFFFF) or FLASH_ProgramWord(Address,Newdata);.

In case of erasing it with FFFFFFFF, data on that address does not change.

In case of overwrite with other data, it only replace it with some wrong data.

 
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 15, 2013
    Posted on June 15, 2013 at 13:34

    Cross Posted

    I can't erase that Address data by using FLASH_ProgarmWord(uint32_t Address,0xFFFFFFFF).

    Because it doesn't work that way, you have to erase a whole SECTOR (16,64 or 128KB depending on the address range).

    0690X0000060Mm4QAE.gif

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