blob: ee5bb0d6c39900e08a0b702cd8ce0ebdc69fc011 [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
board_set_flasher_ifnset(esp32)
board_set_debugger_ifnset(openocd)
board_runner_args(openocd --no-init --no-halt --no-targets --no-load)
board_runner_args(openocd --gdb-init "set remote hardware-watchpoint-limit 2")
board_runner_args(openocd --gdb-init "flushregs")
board_runner_args(openocd --gdb-init "mon reset halt")
board_runner_args(openocd --gdb-init "thb main")
set(ESP_IDF_PATH ${ZEPHYR_HAL_ESPRESSIF_MODULE_DIR})
assert(ESP_IDF_PATH "ESP_IDF_PATH is not set")
board_finalize_runner_args(esp32 "--esp-idf-path=${ESP_IDF_PATH}")