STM32F4 Discovery project: flash Programming Example

 You can find good information about stm32f4xx flash memory in the reference manual:

First time Keil uVision

 A simple example code for "erase of a sector" and "read/write of a 32bit (1 word) and a 8bit (1 byte) data" in stm32f407 microcontroller is shown bellow:

Library dependencies

  • STM32F4xx_StdPeriph_Driver
    • stm32f4xx_flash

THE END.

 You can also use "STM32 ST-LINK Utility" to see, check or erase your flash memory.

First time Keil uVision

Sharif University of Technology, Tehran, Iran