This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
软件在DEBUG模式下运行正常,现换为RELEASE模式做了如下更改:
1 更改CMD为28062cmd
2主函数添加
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);
InitFlash();
程序会死在3efea0无法继续执行
3 map文件 CSM_RSVD CSM_PWL_P0寄存器均未被使用应该没有被锁
请问是什么原因可能导致程序卡在 memcpy
谢谢工程师们,现问题已经被解决,做如下总结解决方法如下
1 (使用TIC2000WARE中程序28069flash进行测试)
更换CMD—28062.cmd并在主函数中添加
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);
InitFlash();
2 程序卡在程序卡在 memcpy是因为模拟库中添加了RTS2800_FPU.LIB
去掉后就不会卡死了
3 程序跑飞应该是与编写的函数有关
4 检查GPIO34 和GPIO37为高电平,删除了直接编写的延时函数就成功了