AnsweredAssumed Answered

STM32F4 Flash rewrite variables

Question asked by happy.cool on Oct 22, 2014
Latest reply on Oct 22, 2014 by Clive One
Hello.
I use STM32F4 and CoIDE. I use Flash sector 11 (because problem with linker when use sector 2) for store application parameters.
I write code...

FLASH_Unlock();
FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_OPERR |      FLASH_FLAG_WRPERR |FLASH_FLAG_PGAERR |     FLASH_FLAG_PGPERR|FLASH_FLAG_PGSERR);
FLASH_EraseSector(FLASH_Sector_11, VoltageRange_3);
FLASH_ProgramWord(0x080E0000, 12);
FLASH_Lock();

But, this is work only first time (after sector erase).
How to rewrite variable without sector erase?

Best regards,
Cool Happy

Outcomes