ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错

wnysmart
Posts: 4
Joined: Thu Apr 21, 2022 8:02 am

ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错

Postby wnysmart » Thu Apr 21, 2022 8:12 am

环境:win10 + Vscode


ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错 如下
1, start OpenOCD 报错日志如下
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
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 : target esp32.cpu1 examination failed
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections


2,F5仿真运行报错信息如下

Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
Debug Adapter initialized
Failed to wait for target state 1! Current state 2


wnysmart
Posts: 4
Joined: Thu Apr 21, 2022 8:02 am

Re: ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错

Postby wnysmart » Fri Apr 22, 2022 7:39 am

非常感谢您能回复, 您发的两个链接我已经详细查看,并进行了尝试,但并没有什么结果.
我现在的问题日志如下: 虽然在第三行提示找不到设备 但是在5-6行 也提示已经找到了设备,而且此时 是可以通过JTAG进行下载程序的.
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
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 : target esp32.cpu1 examination failed
Info : 在 3333 上启动 gdb server for esp32.cpu0
Info : Listening on port 3333 for gdb connections

而当我使用 F5 进行调试的时候 ,确不能正常进行调试. 出现了下面的报错日志

Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
Debug Adapter initialized
Failed to wait for target state 1! Current state 2
同时 代码抛出了异常如下: 不知道该如何进行下一步
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 932, in _bootstrap_inner
Exception in thread Thread-2:
Traceback (most recent call last):
File "threading.py", line 932, in _bootstrap_inner
File "threading.py", line 870, in run
File "threading.py", line 870, in run
File "subprocess.py", line 1366, in _readerthread
File "subprocess.py", line 1366, in _readerthread
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
DEBUG_ADAPTER_STOPPED

wnysmart
Posts: 4
Joined: Thu Apr 21, 2022 8:02 am

Re: ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错

Postby wnysmart » Sat Apr 23, 2022 8:19 am

啊1111111111 折腾了两天 CMD环境可以正常进行openocd的调试

ifoxbr
Posts: 8
Joined: Mon Jun 20, 2022 1:48 pm

Re: ESP32-Ethernet-Kit开发板 ,通过JTAG 烧录程序确正常, 但是使用JTAG仿真时报错

Postby ifoxbr » Tue Aug 23, 2022 4:24 pm

Hello wnysmart

I have same error as yours

Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
Debug Adapter initialized
Failed to wait for target state 1! Current state 2


How did you solve it ?
I´m on this problem for almost 2 weeks

Who is online

Users browsing this forum: zhaofeng and 37 guests