Skip to content

Conversation

@sylvioalves
Copy link
Contributor

@sylvioalves sylvioalves commented Dec 19, 2025

  1. Remove --no-init from openocd runner args to fix debugserver on boards with built-in USB JTAG
  2. Set correct target handle (_TARGETNAME_0) for ESP32 OpenOCD RTOS support
  3. Enable ESP_RTOS Zephyr on all ESP32 boards for thread-aware debugging
  4. Add _ESP_SMP_TARGET 0 for dual-core boards (ESP32, ESP32-S3) to workaround OpenOCD SMP issue
  5. Document thread awareness requirements (OpenOCD v0.12.0-esp32-20251215+, CONFIG_DEBUG_THREAD_INFO=y)

Fixes #96102

Remove the --no-init flag to fix west debugserver on boards
with built-in USB JTAG (ESP32-C6, ESP32-H2).

Signed-off-by: Sylvio Alves <[email protected]>
@zephyrbot zephyrbot added area: Boards/SoCs size: XS A PR changing only a single line of code labels Dec 19, 2025
@sylvioalves sylvioalves self-assigned this Dec 19, 2025
@sylvioalves sylvioalves force-pushed the bugfix/openocd-debugserver branch from 0d42c28 to 69abe19 Compare December 19, 2025 18:01
@zephyrbot zephyrbot added platform: Seeed Studio Seeed Studio platforms area: Debugging platform: WE platform: ESP32 Espressif ESP32 and removed size: XS A PR changing only a single line of code labels Dec 19, 2025
@sylvioalves sylvioalves changed the title boards: espressif: remove --no-init from openocd runner args openocd: espressif: enable thread awareness and update configurations Dec 19, 2025
@sylvioalves sylvioalves force-pushed the bugfix/openocd-debugserver branch 4 times, most recently from 773a3d8 to 7778b79 Compare December 19, 2025 18:21
sylvioalves and others added 4 commits December 19, 2025 15:30
Change ESP_RTOS from none to Zephyr in all ESP32 board
openocd.cfg files to enable thread awareness during debug.

Signed-off-by: Sylvio Alves <[email protected]>
ESP32 OpenOCD uses $_TARGETNAME_0 instead of $_TARGETNAME.
Set the correct target handle to enable RTOS awareness.

Signed-off-by: Sylvio Alves <[email protected]>
Document the OpenOCD version required for Zephyr thread
awareness and how to use CONFIG_DEBUG_THREAD_INFO.

Signed-off-by: Sylvio Alves <[email protected]>
Enable stack offset switching for Xtensa targets if arch_switch is used.

Signed-off-by: Marek Matej <[email protected]>
@sylvioalves sylvioalves force-pushed the bugfix/openocd-debugserver branch from 7778b79 to 4b37c39 Compare December 19, 2025 18:31
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug not working, following documentation

3 participants