stm32f4系列,我用的407有1m的内部flash扇区有12个
初始化以及写入操作如下【这是从官方的库文件中摘出来的】
/****************
* ===================================================================
* How to use this driver
* ===================================================================
*
* This driver provides functions to configure and program the FLASH
* memory of all STM32F4xx devices.
* These functions are split in 4 groups:
*
* 1. FLASH Interface configuration functions: this group includes the
* management of the following features:
* - Set the latency
* - Enable/Disable the prefetch buffer
* - Enable/Disable the Instruction cache and the Data cache
* - Reset the Instruction cache and the Data cache
*
* 2.