Open mbastida123 opened 1 year ago
It seems that Failed to wait for target state %d! Current state %d" %
I would suggest to update the launch.json to increase the timeout "tmoScaleFactor": 2
for a bigger factor. Using the logLevel 4 would also show more timeout issues if you think the application is working fine reduce the logLevel to 2.
It seems that
Failed to wait for target state %d! Current state %d" %
I would suggest to update the launch.json to increase the timeout"tmoScaleFactor": 2
for a bigger factor. Using the logLevel 4 would also show more timeout issues if you think the application is working fine reduce the logLevel to 2.
Hi @brianignacio5 and thanks for the reply.
incressing tmoScaleFactor to 4 didin't yield any result.
However using openOCD I see this output now:
Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001 Info : esp_usb_jtag: capabilities descriptor set to 0x2000 Warn : Transport "jtag" was already selected 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 : esp_usb_jtag: serial (68:B6:B3:48:87:04) Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255 Info : clock speed 40000 kHz Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Error: [esp32s3.cpu1] Unexpected OCD_ID = 00000000 Warn : target esp32s3.cpu1 examination failed Info : starting gdb server for esp32s3.cpu0 on 3333 Info : Listening on port 3333 for gdb connections Info : [esp32s3.cpu0] Debug controller was reset. Error: libusb_bulk_write error: LIBUSB_ERROR_PIPE Info : [esp32s3.cpu0] Core was reset. Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: Failed to exec JTAG queue! Error: Failed to read debug stubs address location (-104)! Polling target esp32s3.cpu0 failed, trying to reexamine Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: [esp32s3.cpu0] Unexpected OCD_ID = 0b339fd2 Examination failed, GDB will be halted. Polling again in 100ms Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: Failed to exec JTAG queue! Error: Failed to read debug stubs address location (-104)! Polling target esp32s3.cpu0 failed, trying to reexamine Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: [esp32s3.cpu0] Unexpected OCD_ID = 0b339fd2 Examination failed, GDB will be halted. Polling again in 300ms Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: Failed to exec JTAG queue! Error: Failed to read debug stubs address location (-104)! Polling target esp32s3.cpu0 failed, trying to reexamine Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: [esp32s3.cpu0] Unexpected OCD_ID = 0b339fd2 Examination failed, GDB will be halted. Polling again in 700ms Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_open() failed with LIBUSB_ERROR_NO_DEVICE Error: missing data from bitq interface Error: Failed to exec JTAG queue! Error: Failed to read debug stubs address location (-104)! Polling target esp32s3.cpu0 failed, trying to reexamine Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: [esp32s3.cpu0] Unexpected OCD_ID = 0b339fd2 Examination failed, GDB will be halted. Polling again in 1500ms Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: Failed to exec JTAG queue! Error: Failed to read debug stubs address location (-104)! Polling target esp32s3.cpu0 failed, trying to reexamine Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: libusb_bulk_write error: LIBUSB_ERROR_IO Error: missing data from bitq interface Error: [esp32s3.cpu0] Unexpected OCD_ID = 0b339fd2 Examination failed, GDB will be halted. Polling again in 3100ms shutdown command invoked Error: libusb_bulk_write error: LIBUSB_ERROR_IO
Is this LIBUSB_ERROR_IO
normal?
Something's off here in openOCD result. Maybe there is some information in the openOCD troubleshooting FAQ. Could you please take a look @gerekon ?
Is this
LIBUSB_ERROR_IO
normal?
you need to connect with boot shorted.
Faced same issue any solutions?
Answers checklist.
General issue report
Hi,
I get an error when trying to debug with esp-idf debug on VSCode.
This is part of my
settings.json
:launch.json
If I run
openocd -f board/esp32s3-builtin.cfg
from terminal everything seems to be in order:And moreover I can see the USB device on the device manager:![image](https://user-images.githubusercontent.com/78351485/219599445-fe7a3e6f-caee-47a6-9318-ec62d4a02f63.png)
Now if I press F5 to start debug session I get on the output: