cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with erasing and overwriting FLASH data

Nickname400_O
Associate
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.

 
1 REPLY 1
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 Venmo
Up vote any posts that you find helpful, it shows what's working..