Hello everyone. I have a problem debugging on the ESP32 Piranha board. The problems occur regardless of the project, the download is successful, but when I click the debug button, an error pops up:
[2025-01-25T14:00:03.707Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\Users\\HUAWEI\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\openocd-esp32\\v0.12.0-esp32-20241016/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\\Users\\HUAWEI\\Documents\\Arduino\\BMP280_Test" -f "C:/Program Files/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f board/esp32-wrover-kit-3.3v.cfg
Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'gdb port', not 'gdb_port'
DEPRECATED! use 'tcl port' not 'tcl_port'
CDRTOSConfigure
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: unable to open ftdi device with description '*', serial '*' at bus location '*'
C:/Users/HUAWEI/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20241016/bin/../share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "C:/Users/HUAWEI/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20241016/bin/../share/openocd/scripts/target/esp_common.cfg", line 9
[2025-01-25T14:00:06.058Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
I tried reinstalling the esp32 package, but it didn't help. I couldn't find a solution on the Internet. The boards were bought 2-3 years ago, there were no problems at the time of purchase, I haven't used them since then. But now I can't debug anything. I'll be glad if someone can help.
Hi @al_grtm. Unfortunately the developers of the "esp32" boards platform have not provided documentation for using the debugger feature with the platform, but the person who added the capability to the platform did provide some information in their pull request:
Currently the following debug methods are supported on all boards (menu option is available for the official "Dev Module" boards):
ESP32: FTDI Adapter (ESP-Prog or compatible)
Do you have an ESP-Prog debug probe or a similar FT2232HL-based debug probe connected between your computer and the JTAG interface of your "Piranha ESP-32" board?
There is no need to follow those instructions. "Deprecated" means that these configuration commands are currently supported, but it is planned to drop support for them in an upcoming version of OpenOCD. So these messages are not related to the error @al_grtm encountered.
In addition, it would be extremely difficult for @al_grtm to follow those instructions because these configuration commands are hardcoded into the Cortex-Debug VS Code extension that provides the debugging capability to Arduino IDE: