芯片选择F103C8 配置定时器 打开外部时钟 配置时钟 配置PC13为output对应板子上的LED 设置堆栈大小为4K,导出
将flash.c 和flash.h添加到工程中 添加代码如下:
#include "flash.h"
uint8_t FlashWBuff [255]; uint8_t FlashRBuff [255];
uint8_t i; uint8_t FlashTest[] = "Hello This is xiluoluwo Flash Test DEMO";
编译 成功。 DEBUG下选择STlink
将程序下载到单片机中
点击进入debug 在view下打开memory1窗口 打开watch1窗口
Periodic Windows Update开启变量自动更新 将变量FlashWBuff 和 FlashRBuff加入到 Watch1
在memory1中输入要观察的地址0x800c000
定义好的句子写到了地址0x0800c000中了
https://blog.csdn.net/m0_58414679/article/details/122220799?spm=1001.2014.3001.5501