-
Notifications
You must be signed in to change notification settings - Fork 132
Work in progress ESP32 dual core target
Ivan Grokhotkov edited this page Jun 7, 2017
·
1 revision
ESP32 OpenOCD port now has a work-in-progress branch which improves dual core debugging support: https://github.com/espressif/openocd-esp32/tree/feature/esp32_dualcore
-
To use the new target, start openocd with the
esp32_dc.cfg
config file found in openocd root directory:src/openocd -s tcl -f esp32_dc.cfg
-
Create the following
gdbinit
file:target remote :3333 mon reset halt thb app_main x $a1=0 c
-
Disable "Stop program on scheduler start when JTAG/OCD is detected" option in menuconfig > Component config > FreeRTOS.
-
Start GDB:
xtensa-esp32-elf-gdb -x gdbinit build/your-app.elf
-
When debugging in Eclipse using "GDB Hardware Debugging" plugin, use the following init sequence:
mon reset halt x $a1=0
Check the "Halt", "Set breakpoint at" (app_main), "Resume" options to make the debugger stop at app_main.