连接测试如下
The controller cannot monitor the value on the EMU[1] pin.
The controller cannot control the timing on output pins.
The controller cannot control the timing on input pins.
The scan-path link-delay has been set to exactly '0' (0x0000).
—–[Perform the Integrity scan-test on the JTAG IR]————————
This test will use blocks of 64 32-bit words.
This test will be applied just once.
Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Scan tests: 2, skipped: 0, failed: 0
Do a test using 0xFE03E0E2.
Scan tests: 3, skipped: 0, failed: 0
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 0
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 0
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 0
All of the values were scanned correctly.
The JTAG IR Integrity scan-test has succeeded.
—–[Perform the Integrity scan-test on the JTAG DR]————————
This test will use blocks of 64 32-bit words.
This test will be applied just once.
Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Scan tests: 2, skipped: 0, failed: 0
Do a test using 0xFE03E0E2.
Scan tests: 3, skipped: 0, failed: 0
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 0
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 0
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 0
All of the values were scanned correctly.
The JTAG DR Integrity scan-test has succeeded.
[End: Texas Instruments XDS110 USB Debug Probe_0]
调试错误如下
CORTEX_M4_0: Error connecting to the target: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0)
这是芯片坏了吗?如果没有坏怎么解决?
xyz549040622:
新的芯片坏的概率是很小的,除非你的电路板电源错误烧坏芯片了。首先你得确保你的电源、晶振、复位电路、下载电路是OK的。其次你用的是什么下载的,CCS还是MDK?工程的配置是否OK,芯片是否选择正确呢?
user5195088:
回复 xyz549040622:
MDK能检测到自己画的板子的芯片,用CCS下载程序时报错,工程配置成Jlink 的SWD模式,能给官方的板子下载程序,换成自己的板子就不能下载了。
xyz549040622:
回复 user5195088:
用MDK给自己的板子可以下载吗?你的速度配置的低点。能检测到芯片,应该是可以下载的吧。
Susan Yang:
回复 user5195088:
请您看一下
processors.wiki.ti.com/…/Debugging_JTAG_Connectivity_Problems
This error means the JTAG debugger is unable to access the core or device on the board.
Technically speaking, this happens if the JTAG debugger fails to access an ICEPick register (exceptions are MSP430, Stellaris and some C2000 Wireless connectivity and Digital Power MCUs, which do not have an ICEPICK). If the ICEPick driver reports this error immediately upon connect, it's likely a hard fail with the JTAG connection itself (loose cables or connections, etc.). However, if the error happens later in the debug session the reasons are different (perhaps the reliability of the JTAG connection due to noise, etc.).
To properly debug and correct this error please refer to the section Troubleshooting the connect phase above.
应该是JTAG本身的问题或者是JTAG不稳定造成的
user5195088:
回复 Susan Yang:
你好,请问TM4C1294NCPDT在什么电源和纹波下会出现锁住FLASH的情况?我测了一下电压3.74V,30mv的纹波超过了3.3V,下不了程序会不会是芯片锁住了?我更换3.3V的电源,还是能读取芯片的的ID,却还是下不了程序。使用UniFLASH解锁芯片时,也解锁不了芯片?
xyz549040622:
回复 user5195088:
手头如果有ICDI的话最好了。使用ICDI+LMFLASH解锁很方便的。至于什么情况下会锁住,官方没有细说,只是说JTAG不稳定的情况下回锁住。