今天下载程序时遇到如下问题:
***JLink Error: CPU is not halted
**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
解决:换下载线。
又遇到第二个问题:
Contents mismatch at: 08000000H (Flash=FFH Required=00H) !
Contents mismatch at: 08000000H (Flash=FFH Required=00H) !
Contents mismatch at: 08000001H (Flash=FFH Required=04H) !
Contents mismatch at: 08000002H (Flash=FFH Required=00H) !
Contents mismatch at: 08000003H (Flash=FFH Required=20H) !
Contents mismatch at: 08000004H (Flash=FFH Required=43H) !
.
.
.
.
.
.
Too many errors to display !
这是在程序下载完进行程序校验的时候出现的,当然把程序校验功能关了,就不会提示这个问题了:
但是程序没法运行起来。
于是我把下载速度降低到20KHz解决。
也有人说,如果你下载程序的时候突然掉电,会导致flash异常出现这个问题。需要选择把flash全片擦除。
本文解决JLink下载程序时遇到的CPU未停止及读取寄存器失败等问题,并分享解决程序校验失败的经验,通过更换下载线、调整下载速度及全片擦除Flash的方法。
1655

被折叠的 条评论
为什么被折叠?



