在使用ram.cmd无报错,替换cmd文件为flash.cmd时编译成功后进入debug界面,烧写程序失败,出现如下界面
错误信息: Break at address "0x3fbd92" with no debug information available, or outside of program code.
解决方法:
在Sysctrl.c文件中添加宏定义
#define _FLASH
在主程序的第一条指令前添加代码
memcpy(&RamfuncsLoadStart, &RamfuncsLoadEnd, (size_t)&RamfuncsRunStart);
即可解决问题