问题描述:

**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

***JLink Error: Can not read register 9 (R9) while CPU is running

***JLink Error: Can not read register 10 (R10) while CPU is running

***JLink Error: Can not read register 11 (R11) while CPU is running

***JLink Error: Can not read register 12 (R12) while CPU is running

***JLink Error: Can not read register 13 (R13) while CPU is running

***JLink Error: Can not read register 14 (R14) while CPU is running

***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 17 (MSP) while CPU is running

***JLink Error: Can not read register 18 (PSP) while CPU is running

***JLink Error: Can not read register 20 (CFBP) while CPU is running

解决方案

将HAL_MspInit()的__HAL_AFIO_REMAP_SWJ_DISABLE();注释掉,换成

__HAL_AFIO_REMAP_SWJ_NOJTAG();

最新文章

  1. C# 获取磁盘剩余空间
  2. 图解Javascript原型链
  3. leetcode-【hard】273. Integer to English Words
  4. python子类调用父类的方法
  5. 聊天IM的时间戳显示规则
  6. jqueryGrid 内置的onclickSubmit afterSubmit
  7. [Irving]SqlServer 标量函数 详解【转】
  8. jqgrid单元格设置空值的方法
  9. 关于Excel Networkdays方法的实现
  10. [Sequence Alignment Methods] Smith–Waterman algorithm
  11. linux命令行模式下实现代理上网(转)
  12. div+css命名规范大全
  13. UNIX网络编程——使用select函数的TCP和UDP回射服务器程序
  14. 链表倒数第k个节点
  15. 卷积神经网络总结CNN【转载】
  16. [Android] Android Studio 修改Gradle使用国内源
  17. 垂直打击之JVM剖析
  18. HttpWebRequest.ReadWriteTimeout 属性
  19. Java的工厂模式(一)
  20. python的变量的命名规则以及定义

热门文章

  1. 请不要浪费你的生命,一文多发推广就用它(OpenWrite)
  2. PHP命令执行学习总结
  3. uniapp中引入less文件
  4. P4016 负载平衡问题 网络流重温
  5. 线段树 区间加 gcd 差分 小阳的贝壳
  6. 常用linux命令学习记录
  7. Matlab矩阵总结
  8. 微软原文翻译:适用于.Net Core的WPF数据绑定概述
  9. leetcode485——最大连续1的个数(easy)
  10. Spring IOC使用详解