IDF 4.4.1 Clion on Ubuntu

ssen_son
Posts: 2
Joined: Tue Mar 18, 2025 4:28 pm

IDF 4.4.1 Clion on Ubuntu

Postby ssen_son » Mon Mar 24, 2025 7:32 pm

Hi, I am using ESP32-WROOM-32UE and trying to debug ESP code on CLion 2023.3.6 on ubuntu-22.04.5-desktop-amd64 (VM), I am now able to BUILD and FLASH the code but unable to debug. I am using boards/esp-wroom-32.cfg as board config file but I get the following error -


[code]Open On-Chip Debugger v0.11.0-esp32-20211220 (2021-12-20-15:42)
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.
Error: Debug adapter doesn't support any transports?
/home/sen/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts/target/esp32.cfg:2: Error:
in procedure 'script'
at file "embedded:startup.tcl", line 26
at file "/home/sen/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts/board/esp-wroom-32.cfg", line 3
at file "/home/sen/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 2
GDB Server stopped, exit code 1[/code]


I do not see xxx_buildin.cfg for WROOM, so i wanted to know if there is a way to directly debug the code or I need an external debugger like ESP-WROVER-KIT.
Any hint on how to proceed ? here is the debug configuration that throws the above error -
Screenshot 2025-03-24 152850.png
Debug configuration
Screenshot 2025-03-24 152850.png (72.42 KiB) Viewed 550 times

kondalkolipaka
Espressif staff
Espressif staff
Posts: 269
Joined: Wed Jul 17, 2019 5:26 pm

Re: IDF 4.4.1 Clion on Ubuntu

Postby kondalkolipaka » Tue Mar 25, 2025 6:09 am

Hello,

ESP32-WROOM-32UE doesn’t have a built-in JTAG adapter for debugging. You need an external debugger like ESP-PROG or another compatible JTAG interface. Alternatively, you can use simple debugging tools such as GDB Stub, Core Dump and serial monitor debugging.

GDB stub debugging
https://docs.espressif.com/projects/esp ... th-gdbstub

Core Dump
https://docs.espressif.com/projects/esp ... #core-dump

You can also think about using "ESP-WROVER-KIT" which has built-in JTAG (FTDI FT2232HL)

Thanks

Who is online

Users browsing this forum: No registered users and 0 guests