Skip to content

Commit

Permalink
Add Multi-core debugging with OpenOCD (#142)
Browse files Browse the repository at this point in the history
* Update openocd.md

* Update openocd.md
  • Loading branch information
ProfFan authored Feb 21, 2024
1 parent 410c2a8 commit 02622cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tooling/debugging/openocd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 02622cd

Please sign in to comment.