j-link出现CPU could not be halted;no sw-dp found;Too many errors to display

来源:互联网 发布:心事谁人知闽南语翻译 编辑:程序博客网 时间:2024/06/09 01:45

今天下载程序时遇到如下问题:

***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全片擦除。



阅读全文
0 0