Description: This example provides a description of how to program the STM32F4xx FLASH.
After Reset, the Flash memory Program/Erase Controller is locked. To unlock it,
the FLASH_Unlock function is used.
Before programming the desired addresses, an erase operation is performed using
the flash erase sector feature. The erase procedure starts with the calculation of
the number of sector to be used. Then all these sectors will be erased one by one by
calling FLASH_EraseSector function.
Once this operation is finished, the programming operation will be performed by
using the FLASH_ProgramWord function. The written data is then checked and the
result of the programming operation is stored into the MemoryProgramStatus variable.
To Search:
File list (Check if you may need any files):
FLASH_Program
.............\.DS_Store
__MACOSX
........\FLASH_Program
........\.............\._.DS_Store
FLASH_Program\EWARM
.............\.....\Flash_Program.ewd
.............\.....\Flash_Program.ewp
.............\.....\Flash_Program.eww
.............\.....\stm32f4xx_flash.icf
.............\main.c
.............\MDK-ARM
.............\.......\Flash_Program.uvopt
.............\.......\Flash_Program.uvproj
.............\readme.txt
.............\stm32f4xx_conf.h
.............\stm32f4xx_it.c
.............\stm32f4xx_it.h
.............\system_stm32f4xx.c
.............\TASKING
.............\.......\.metadata
.............\.......\.........\Link
.............\.......\FLASH_Program
.............\.......\.............\.cproject
.............\.......\.............\.project
.............\.......\.............\FLASH_Program.launch
.............\.......\.............\TASKING
.............\.......\.............\.......\stm32f4xx.lsl
.............\TrueSTUDIO
.............\..........\.metadata
.............\..........\.........\Link
.............\..........\FLASH_Program
.............\..........\.............\.cproject
.............\..........\.............\.project
.............\..........\.............\.settings
.............\..........\.............\.........\com.atollic.truestudio.debug.hardware_device.prefs
.............\..........\.............\FLASH_Program.elf.launch
.............\..........\.............\stm32_flash.ld