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.

本文介绍如何操作STM32F4系列,特别是STM32F407的1M内部Flash。内容包括初始化、写入操作,强调在进行操作时需要注意不要使用第0扇区,因为该扇区包含bootloader和主程序,错误操作可能导致程序运行异常。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



