2022-09-05 18:12:52 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
|
|
|
|
set(OPENOCD OPENOCD-NOTFOUND)
|
|
|
|
endif()
|
|
|
|
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
|
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
2023-03-28 21:37:07 +08:00
|
|
|
|
|
|
|
# the default ESP32 baud rate is not supported
|
|
|
|
board_runner_args(esp32 "--esp-baud-rate=1500000")
|