Question
STM32F4 Flash rewrite variables
Posted on October 22, 2014 at 13:35
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 #stm32f #rewrite #flash #eeprom