Page 1 of 1

Setting up JTAG with ESP32 S3 (LIBUSB_ERROR_NOT_FOUND)

Posted: Mon Jun 13, 2022 6:04 am
by zazas321
Hello. I am trying to setup JTAG debugging for the first time on my ESP32 S3 device.

1. I have followed the information here:
https://docs.espressif.com/projects/esp ... -jtag.html
I have download the ESP-IDF Tools installer and installed all the additional tools in my esp-idf directory.


2. I have plugged my USB cable to USB port on the ESP32 S3 development board
In the device manager, the port appears as:
USB Serial Device
https://ibb.co/MDZr1Bq

3. I have selected target device as ESP32-S3 with built in JTAG interface

4. When I click OpenOCD Server at the bottom of the screen and then select Start OpenOCD, I am getting the following error:

```
Open On-Chip Debugger v0.11.0-esp32-20211220 (2021-12-20-15:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

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_FOUND
Error: esp_usb_jtag: could not find or open device!

Assertion failed!

Program: C:\Users\petrikas.lu\.espressif\tools\openocd-esp32\v0.11.0-esp32-20211220\openocd-esp32\bin\openocd.exe
File: ../src/jtag/core.c, Line 343

Expression: jtag_trst == 0
[Stopped] : OpenOCD Server

```


Could anyone point me in the right direction and help me setup JTAG debugging for the device? This seems to be a frequent issue but I havent managed to find a solution yet.