使用JLINK仿真器,SW模式,接了3.3V、GND、SWDIO、SWCLK四根线,正常下载后,调试出现以下问题:
***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
***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink Error: Can not read register 3 (R3) while CPU is running
。。。
然后就找不到芯片了。。。
根据TI的重置方法:
Recovering a "Locked" Microcontroller
1. Assert and hold the RST signal.
2. Apply power to the device.
3. Perform steps 1 and 2 of the JTAG-to-SWD switch sequence on the section called “JTAG-to-SWD
Switching” on page 214.
4. Perform steps 1 and 2 of the SWD-to-JTAG switch sequence on the section called “SWD-to-JTAG
Switching” on page 215.
5. Perform steps 1 and 2 of the JTAG-to-SWD switch sequence.
6. Perform steps 1 and 2 of the SWD-to-JTAG switch sequence.
7. Perform steps 1 and 2 of the JTAG-to-SWD switch sequence.
8. Perform steps 1 and 2 of the SWD-to-JTAG switch sequence.
9. Perform steps 1 and 2 of the JTAG-to-SWD switch sequence.
10. Perform steps 1 and 2 of the SWD-to-JTAG switch sequence.
11. Perform steps 1 and 2 of the JTAG-to-SWD switch sequence.
12. Perform steps 1 and 2 of the SWD-to-JTAG switch sequence.
13. Release the RST signal.
14. Wait 400 ms.
15. Power-cycle the microcontroller.
又可以恢复找到,但重新下载又会回到之前的问题。很苦恼 !
望高手搭救,谢谢!
user4207297:
补充一下:试用了一块TI的launchpad,可正常烧录。
问题log:
JLink info:
————
DLL: V4.80g, compiled Feb 13 2014 20:50:02
Firmware: J-Link ARM V8 compiled Nov 25 2013 19:20:08
Hardware: V8.00
S/N : 304439649
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFULL
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: TPIU ***.
* JLink Info: ETM ***.
ROMTableAddr = 0xE00FF003
Target info:
————
Device: TM4C1294NCPDT
VTarget = 3.267V
State of Pins: TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:4
JTAG speed: 50 kHz
Load "E:\\Zhudl\\光伏项目\\集中采集装置\\data_collection20190219\\data_collection.axf"
* JLink Info: J-Link: Flash download: Flash download into internal flash skipped. Flash contents already match
BS \\data_collection\src/initialize.c\12
**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
。。。
xyz549040622:
回复 user4207297:
说不定jlink对TI的芯片支持的不是那么好,你可以试试XDS或者ICDI。
Susan Yang:
回复 user4207297:
请问您现在是使用什么软件调试的?CCS?您是全速运行?
您可以尝试下在调试选项里debug->setting->debug->connect & reset options->reset 选项设置改为autodetect
user4207297:
回复 Susan Yang:
用的Keil4,25M的外部晶振,设置80M的主频
user4207297:
回复 xyz549040622:
有没有可能是硬件问题?用TI的开发板是可以正常运行的。
user4207297:
回复 xyz549040622:
原因找到确实是晶振,起震不稳定,时有时无,原因是配的电阻大了。
谢谢各位的指导!
TI中文支持网
