Page 1 of 1

ESP32 Debugging with Eclipse

Posted: Mon Aug 09, 2021 5:35 am
by joshchen
Hi,

I am using Eclipse and trying the debugging feature. I follows the tutorial from here: https://www.youtube.com/watch?v=CbPX3q7LeBc

I followed the tutorial to use ESP-IDF GDB OpenOCD Debugging under Debug Configuration (Screenshot attached). However, in the "Config options" we need to specify the interface (what the debugging target is). By default, it uses "interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-wrover-kit-1.8v.cfg". However, I use ESP32-WROOM-32UE right now. It gave me these errors when clicked on "Debug":

"Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz

Warn : Interface already configured, ignoring
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6014, description '*', serial '*' at bus location '*'

Assertion failed!

Program: C:\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin\openocd.exe
File: ../src/jtag/core.c, Line 343

Expression: jtag_trst == 0
"


How do I change the name for the interface and what cfg file I should use?

What if I use my own custom design, like integrate the ESP32 chip into my own PCBA design? What interface should I set to make the debugging in Eclipse work?

Thanks!

Re: ESP32 Debugging with Eclipse

Posted: Mon Aug 09, 2021 6:22 am
by ESP_Sprite
What's your hardware like, specifically, what board or JTAG adapter do you have?

Re: ESP32 Debugging with Eclipse

Posted: Mon Aug 09, 2021 4:02 pm
by joshchen
I haven't used any adapter yet. I am using ESP32-DEVKITC-32UE with USB cable only.

Do I need to use the ESP-PROG for Eclipse debugging? Can you provide more instructions on this?

Thanks you.

Re: ESP32 Debugging with Eclipse

Posted: Tue Aug 10, 2021 1:17 am
by ESP_Sprite
You would need an ESP-Prog or another JTAG adapter that is supported by OpenOCD.