JLink Warning: CPU could not be halted错误怎么解决?

2020-01-10 19:41发布

MDK一进单步调试模式,点击运行就出现以下错误:
**JLink Warning: CPU could not be halted
***JLink Error: Can not read register 15 (R15) while CPU is running
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***JLink Error: Can not read register 0 (R0) while CPU is running
***JLink Error: Can not read register 1 (R1) while CPU is running
***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink Error: Can not read register 3 (R3) while CPU is running
***JLink Error: Can not read register 4 (R4) while CPU is running
***JLink Error: Can not read register 5 (R5) while CPU is running
***JLink Error: Can not read register 6 (R6) while CPU is running
***JLink Error: Can not read register 7 (R7) while CPU is running
***JLink Error: Can not read register 8 (R8) while CPU is running
无法进行单步调试
出现错误的MDK版本为474,513,517,使用的Jlink有9.4和7
网上提出的所有解决方案都试过了,没有作用

单片机是STM32F407VET6,5个芯片试了3个,都是一个样子
芯片来源是在芯间,以前批次的芯片是可以单步调试的,采用MDK513和Jlink V9.4

程序是好的,其它方式测试通过了

严重影响调试,为了避免以后出现类似问题,在此求教
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。