ESP32 Debugging with Eclipse

joshchen
Posts: 5
Joined: Mon Jul 05, 2021 1:07 am

ESP32 Debugging with Eclipse

Postby joshchen » Mon Aug 09, 2021 5:35 am

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!
Attachments
Capture2.PNG
Capture2.PNG (89.45 KiB) Viewed 3548 times

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Debugging with Eclipse

Postby ESP_Sprite » Mon Aug 09, 2021 6:22 am

What's your hardware like, specifically, what board or JTAG adapter do you have?

joshchen
Posts: 5
Joined: Mon Jul 05, 2021 1:07 am

Re: ESP32 Debugging with Eclipse

Postby joshchen » Mon Aug 09, 2021 4:02 pm

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.
Last edited by joshchen on Mon Aug 09, 2021 4:03 pm, edited 1 time in total.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Debugging with Eclipse

Postby ESP_Sprite » Tue Aug 10, 2021 1:17 am

You would need an ESP-Prog or another JTAG adapter that is supported by OpenOCD.

Who is online

Users browsing this forum: Bing [Bot] and 114 guests