zephyr/boards/common/esp32.board.cmake
Marcio Ribeiro 3c82cd6585 openocd: esp32: gdb init command update
flushregs alias is deprecated, so it was replaced by the command:
"maintenance flush register-cache"

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2024-10-17 09:44:26 +02:00

16 lines
608 B
CMake

# 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 "maintenance flush register-cache")
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}")