单片机/MCU论坛
直播中

张国厚

7年用户 1368经验值
私信 关注
[问答]

ADUC7020用JTAG烧写程序后再无法烧写,DEBUG模式也无法进入?怎么解决?

由于程序有BUG导致用JTAG烧写程序后,再无法烧写,DEBUG模式也无法进入?怎么办?
KEIL信息如下:
VTarget = 3.228V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: TotalIRLen = 4, IRPrint = 0x01
Info: RTCK seems to be bridged with TCK
Info: Auto JTAG speed: 8000 kHz
***JLink Warning: PC of target system has unexpected value of 0xFFFFFFD8 after reset.
***JLink Error: Bad JTAG communication: Write to IR: Expected 0x1, got 0x2 (TAP Command : 12) @ Off 0x14.
DLL version V4.15n, compiled Jun 18 2010 19:55:09
Firmware: J-Link ARM V8 compiled Jul 17 2014 12:31:18
Hardware: V8.00
Info: Could not measure total IR len. TDO is constant high.
***JLink Warning: No matching core found.
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
***JLink Warning: No matching core found.
Info: Could not measure total IR len. TDO is constant high.
Info: Failed to halt CPU core before ADI software reset.
Info: Could not measure total IR len. TDO is constant high.
Info: Resetting target using RESET pin
Info: Resetting TRST
Info: CPU no longer halted after stop via DBGRQ: DBGACK = 0, nMREQ  = 0
***JLink Error: Could not find supported CPU core on JTAG chain
1, got 0x2 (TAP Command : 12) @ Off 0x14.
Bad JTAG communication: Write to IR: Expected 0x1, got 0x3 (TAP Command : 12) @ Off 0x14.
JTAG speed: 5 kHz
Full Chip Erase Failed!

回帖(1)

郭大

2024-1-12 17:07:57
从错误信息来看,可能是由于程序中的BUG导致了JTAG通信错误。以下是一些可能的解决方法:

1. 重新复位目标设备:在JTAG连接器上找到RESET引脚,手动将其拉低一段时间,然后释放。这将复位目标设备,可能能够解决通信问题。

2. 检查电源供应:确保目标设备的电源供应稳定,并且能够提供足够的电流。电源问题可能导致通信错误。

3. 检查JTAG连接:确保JTAG连接器正确连接到目标设备,并且没有松动或脱落。还要确保连接器的引脚没有损坏。

4. 检查调试线路:确保调试线路没有任何损坏或短路。检查并修复任何可能导致通信错误的问题。

5. 尝试降低JTAG速度:在Keil中尝试降低JTAG的速度,看看是否能够解决通信问题。

6. 检查目标设备的错误状态:有时目标设备内部的错误状态可能导致通信错误。在复位之前,使用例如J-Link Commander或其他工具来检查目标设备的状态。

7. 重新烧录程序:如果以上方法都无效,可能需要将目标设备擦除并重新烧录程序。擦除目标设备的方法通常与使用的JTAG工具有关,例如使用J-Link Commander工具的erase命令。

如果以上方法都无效,可能需要向厂家或相关技术支持寻求帮助,他们可能能够提供更具体的解决方案。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分