1# SPDX-License-Identifier: Apache-2.0 2 3board_set_flasher_ifnset(esp32) 4board_set_debugger_ifnset(openocd) 5 6board_runner_args(openocd --no-init --no-halt --no-targets --no-load) 7board_runner_args(openocd --gdb-init "set remote hardware-watchpoint-limit 2") 8 9board_runner_args(openocd --gdb-init "flushregs") 10board_runner_args(openocd --gdb-init "mon reset halt") 11board_runner_args(openocd --gdb-init "thb main") 12 13set(ESP_IDF_PATH ${ZEPHYR_HAL_ESPRESSIF_MODULE_DIR}) 14assert(ESP_IDF_PATH "ESP_IDF_PATH is not set") 15 16board_finalize_runner_args(esp32 "--esp-idf-path=${ESP_IDF_PATH}") 17