From 02622cdf3a4a2fbb813c60735b32e934d586439b Mon Sep 17 00:00:00 2001 From: Fan Jiang Date: Wed, 21 Feb 2024 10:40:28 -0500 Subject: [PATCH] Add Multi-core debugging with OpenOCD (#142) * Update openocd.md * Update openocd.md --- src/tooling/debugging/openocd.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tooling/debugging/openocd.md b/src/tooling/debugging/openocd.md index add84b7..7b514db 100644 --- a/src/tooling/debugging/openocd.md +++ b/src/tooling/debugging/openocd.md @@ -75,3 +75,6 @@ OpenOCD can be used in VS Code via the [`cortex-debug`][cortex-debug] extension [jtag-interfaces-esp32]: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/configure-other-jtag.html +# Debugging with Multiple Cores + +Sometimes you may need to debug each core individually in GDB or with VSCode. In this case, change `set ESP_RTOS none` to `set ESP_RTOS hwthread`. This will make each core appear as a hardware thread in GDB. This is not currently documented in Espressif official documentation but in OpenOCD docs: https://openocd.org/doc/html/GDB-and-OpenOCD.html