debugging esp32-s3-DevKitC-1 in eclipse not working

PatrickJ
Posts: 1
Joined: Mon Jul 24, 2023 2:15 pm

debugging esp32-s3-DevKitC-1 in eclipse not working

Postby PatrickJ » Mon Jul 24, 2023 4:17 pm

Hello, could someone please help me with configuring eclipse to debug the esp32-s3-DevkitC-1?
I am working on a Windows 10 platform with the latest version the ESP-IDF with the configuration:

Operating System: windows 10
Java Runtime Version: 17.0.5+8
Eclipse Version: 4.28.0.v20230605-0440
Eclipse CDT Version: 11.2.0.202303140100
IDF Eclipse Plugin Version: 2.10.0.202306060331
D:\DevelopmentTools2\ESP32-IDF\esp-idf-v5.1\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
ESP-IDF v5.1-dirty
Python set for IDF_PYTHON_ENV: Python 3.8.5

I have followed all the steps I could find in the docs and from many articles on the web, but still I cannot get eclipse debugging to work. I have compiled and successfully flashed the test "blink" program and it works fine. However when I try to debug it I get the following message, see attachment:
eclipse_debug_fail.png
I have setup the eclipse debug configuration I believe correctly as follows:
eclipse_debug_setup1.png
and
eclipse_debug_setup2.png
I also tried the openocd debug connection from the command prompt and got the following response ...

c:\Users\patri\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin>openocd -f board/esp32s3-builtin.cfg
Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselecting '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: esp_usb_jtag: could not find or open device!
c:/Users/patri/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg:4: Error:
at file "c:/Users/patri/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg", line 4

I looked at the esp_common.cfg line 4 which was "catch {[source [find target/esp_version.cfg]]}" and this didn't really tell me much.

If someone could tell me what I am missing or doing wrong in setting up this board for debugging I would be very grateful.

Thanks
Patrick.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: debugging esp32-s3-DevKitC-1 in eclipse not working

Postby ESP_igrr » Mon Jul 24, 2023 10:53 pm

Hi Patrick,

The actual error is here:
PatrickJ wrote: Error: esp_usb_jtag: could not find or open device!
Basically, OpenOCD is unable to find the device with VID 0x303a and PID 0x1001 in the system.

Please check Device Manager and see if you have "USB JTAG/Serial Debug Unit" device with this VID and PID.

If you don't see it, please find which device appears when you plug in the board, and see which VID and PID it has.

Who is online

Users browsing this forum: No registered users and 46 guests