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