jlink error:can not read register ....

时间:2024-03-26 07:57:33

背景:st mcu 编译,升级后,运行的时候出现jlink error:can not read register ....

推测:程序是带boot 和app 两部分,在不要boot情况下app程序没有从0x8000000开始运行

修改:因为现在是调试阶段,不需要boot,所以做出如下修改

a.把app运行的keil做如下修改:

jlink error:can not read register ....

b.main函数修改如下:

jlink error:can not read register ....

编译,升级,程序正常运行;