platform-espressif32 icon indicating copy to clipboard operation
platform-espressif32 copied to clipboard

Debugging on ESP32-C6 not possible

Open maxgerhardt opened this issue 2 years ago • 2 comments

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:

  1. Outdated Espressif/OpenOCD version used
  2. Board definitions missing the declaration of the board file ("debug": { "openocd_board": "esp32c6-builtin.cfg" })
  3. Missing GDB setup commands as posted in here

maxgerhardt avatar Nov 01 '23 11:11 maxgerhardt

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.

valeros avatar Nov 01 '23 13:11 valeros

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

Jason2866 avatar Nov 01 '23 16:11 Jason2866