PlatformIO Community

Debugging ESP32 S3 using built-in jtag


I’m attempting to use the built-in jtag debugger with a ESP32-S3-DevKitC-1, unfortunately I’m running into a problem. According to this, the issue should be solved, but I’m getting the following error:

Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:48)
Licensed under GNU GPL v2
For bug reports, read
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
adapter speed: 40000 kHz

Warn : Transport "jtag" was already selected
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 5000 kHz

Info : tcl server disabled
Info : telnet server disabled
Error: esp_usb_jtag: could not find or open device!

Assertion failed!

Program: C:\Users\trabi\.platformio\packages\tool-openocd-esp32\bin\openocd.exe
File: ../src/jtag/core.c, Line 338

Expression: jtag_trst == 0
.pioinit:11: Error in sourced command file:
Remote communication error.  Target disconnected.: Success.

I’m using the platform version 5.0, which, if I’m not mistaken has that fix mentioned above.

Just an update:

The ESP needed to be in the bootloader. For whatever reason the program it came with would not enable jtag (possibly because it was using cdc uart?)