maotuike 2024-10-20 10:51 采纳率: 0%
浏览 98
已结题

ESP-PROG配置错误,ALL ONES

WIN环境下,esp-idf4.4版本,目标板esp32cam,通过ESP-PROG上传和调试,如图:

img


,接线应该没有问题,我在配置JTAG卡时,openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f target/esp32.cfg, 有时正常,但是大部分时间都是下面几种错误信息,不知道是怎么回事,换了个ESPPROG也是这样
正常情况:

正常情况:
openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f target/esp32.cfg
Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : [esp32.cpu0] Debug controller was reset.
Info : [esp32.cpu0] Core was reset.
Info : [esp32.cpu0] Target halted, PC=0x400835A0, debug_reason=00000001
Info : Set GDB target to 'esp32.cpu0'
Info : [esp32.cpu1] Debug controller was reset.
Info : [esp32.cpu1] Core was reset.
Info : [esp32.cpu1] Target halted, PC=0x40008544, debug_reason=00000000
Info : [esp32.cpu1] Reset cause (12) - (Software CPU1 reset)
Info : [esp32.cpu0] Reset cause (12) - (Software CPU0 reset)

错误一:

Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : [esp32.cpu0] Unexpected OCD_ID = ffffffff
Warn : target esp32.cpu0 examination failed
Warn : [esp32.cpu1] Unexpected OCD_ID = ffffffff
Warn : target esp32.cpu1 examination failed
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections

错误二:

Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000
Warn : target esp32.cpu1 examination failed
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : [esp32.cpu0] Debug controller was reset.
Info : [esp32.cpu0] Core was reset.
Info : [esp32.cpu0] Target halted, PC=0x4000874A, debug_reason=00000000
Info : [esp32.cpu0] Reset cause (1) - (Power on reset)
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000
Warn : [esp32.cpu1] Unexpected OCD_ID = 00000000

  • 写回答

27条回答 默认 最新

  • 专家-司宇[在线] 2024-10-20 11:30
    关注
    获得0.15元问题酬金

    以下回复引自免费微信小程序:皆我百晓生。 如问题解决,还请采纳。如仍有疑问,请回复留言或私信博主,以便获得更精准的帮助。

    在WINDOWS环境下,使用JTAG进行ESP-PROG调试时,需要确保所有连接正确且设备正常工作。如果上述步骤中遇到任何问题,可能是因为某些设备或连线与ESP-PROG的通信接口不兼容。以下是一些建议来解决这些问题:

    1. 检查ESP-PROG设置

      • 确保ESP-PROG是正确的版本(例如,最新版为4.4)。
      • 检查所有连接到ESP-PROG的设备是否都已启动并处于正确状态。
    2. 确认设备电源和温度设置

      • 调整ESP-PROG的电源电压至适当水平。
      • 关闭或关闭设备的所有散热风扇以减少发热。
    3. 检查硬件连接

      • 确认所有的硬件连接(如串口、USB等)都是正确的,没有损坏。
      • 清理设备上的灰尘或其他杂物,避免影响通信效果。
    4. 验证设备的连接

      • 用OPENCUDA或类似的工具检查设备与ESP-PROG之间的通信。
      • 验证设备的电源输出是否稳定,温度是否正常。
    5. 尝试重新启动ESP-PROG

      • 在大多数情况下,重启ESP-PROG会解决问题。
      • 如果重启后仍然出现错误,可能是由于设备故障导致的。
    6. 考虑使用外部设备进行调试

      • 尝试使用其他设备(如模拟器)代替ESP-PROG进行调试。
      • 这样可以更直观地观察设备的工作情况,但可能会带来额外的开发成本。
    7. 根据经验调整ESP-PROG配置

      • 对于一些特定的设备或连线,可能需要调整ESP-PROG的配置文件以适应它们的特性。
      • 可以参考ESP-PROG官方文档中的“CONFIG”章节获取详细的配置信息。
    8. 备份重要数据

      • 定期备份重要的数据,特别是那些涉及到敏感操作的数据。
    9. 查阅ESP-PROG用户手册

      • 在ESP-PROG的官方网站上查找相关的使用指南和常见问题解答。
    10. 联系专业人员

      • 如果以上方法都不能解决问题,或者怀疑设备存在问题,建议寻求专业的技术支持。

    对于具体问题的具体解决方案,请详细描述你的具体环境和设备,以便提供更为准确的帮助。

    评论

报告相同问题?

问题事件

  • 系统已结题 10月28日
  • 创建了问题 10月20日