OpenOCD with CLion (debugging)
Posted: Sun Jan 26, 2020 9:04 pm
Has somebody managed it to use OpenOCD within CLion for debugging the ESP32? I cannot get it running.
Code: Select all
cd $OPENOCD_DIR/openocd-esp32
pkill -9 openocd
bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-wrover.cfg &
sleep 1
exit 0
Code: Select all
set $esp_reset = 0
define hook-stop
if ($esp_reset == 0)
set $esp_reset = 1
printf "Reset ESP with halt command\n"
stop
mon reset halt
flushregs
thb app_main
end
end