platform-espressif32
platform-espressif32 copied to clipboard
Debugging on ESP32-C6 not possible
Per https://community.platformio.org/t/cannot-run-debugger-on-esp32-c6/36473.
Currently there seem to be at least the following issues for debugging ESP32-C6 based boards:
- Outdated Espressif/OpenOCD version used
- Board definitions missing the declaration of the board file (
"debug": { "openocd_board": "esp32c6-builtin.cfg" }) - Missing GDB setup commands as posted in here
Thanks for reporting, indeed an updated OpenOCD v0.12 is required to debug ESP32-C6, sadly there is an issue with this version which prevents us from updating this package at the moment.
Espressif updated there 12.x OpenOCD version (again) which is used in IDF5.1 This one https://github.com/espressif/openocd-esp32/releases/tag/v0.12.0-esp32-20230921 is used now