stm32f407 hal flash读写
时间: 2023-08-24 14:06:55 浏览: 219
stm32读写Flash
5星 · 资源好评率100%
在STM32F407上使用HAL库进行flash读写的示例代码如下所示:
```c
#include "stm32f4xx_hal.h"
#include "stdio.h"
#define FLASH_SAVE_ADDR 0x0800F800 // Flash保存地址
void HAL_FLASH_Read(uint32_t address, uint32_t* data, uint32_t size)
{
for (uint32_t i = 0; i < size; i++)
{
data[i = *(uint32_t*)address;
address
#### 引用[.reference_title]
- *1* [stm32f407读写flash的demo,基于正点原子探索者板](https://download.csdn.net/download/qq_31114955/10746705)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [STM32系列(HAL库)——内部FLASH读写实验](https://blog.csdn.net/lwb450921/article/details/124204299)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文