JTAG debugging on ESP32 DevKit

Hello,

I’m trying to setup debugging on ESP32 DevKit v1. I successfully connected my ESP32 to the FT2232H mini module and I can build, upload and monitor the code. The code is uploaded through the FT2232H mini module:

[env:esp32doit-devkit-v1]

platform = espressif32

board = esp32doit-devkit-v1

framework = espidf

debug_tool = minimodule

debug_port = /dev/cu.usbserial-FT73ZJ511

upload_protocol = minimodule

upload_port = /dev/cu.usbserial-FT73ZJ511

monitor_port = /dev/cu.usbserial-0001

monitor_speed = 115200

So the JTAG interface should work, however I cannot debug my target. When I click on “Start Debugging”, the code is built and uploaded but I get the following error on the Debug Console. It hangs forever in the Initialising remote target… :

undefinedOpen On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:49)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
adapter speed: 5000 kHz

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 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 : [esp32.cpu0] Debug controller was reset.
Info : [esp32.cpu0] Core was reset.
Info : [esp32.cpu1] Debug controller was reset.
Info : [esp32.cpu1] Core was reset.
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Reading symbols from /Users/me/Documents/PlatformIO/Projects/test-jtag-pio/.pio/build/esp32doit-devkit-v1/firmware.elf...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-xtensa-le' unknown.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = minimodule
PlatformIO: Initializing remote target...

So I have two questions:

  • Why does it hang in initialising remote target ?

  • Why is the elf32-xtensa-le not known by platformio ?

Thanks in advance for your help.

Are you on an ARM M1 Mac? Then you might be suffering from this issue but the ESP32 instead of ESP32S3 version of it.

1 Like