1# SPDX-License-Identifier: Apache-2.0
2
3if(CONFIG_BOARD_ARDUINO_NICLA_VISION_STM32H747XX_M7)
4  board_runner_args(jlink "--device=STM32H747XI_M7" "--speed=4000")
5  board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_nicla_vision_m7.cfg")
6  board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
7elseif(CONFIG_BOARD_ARDUINO_NICLA_VISION_STM32H747XX_M4)
8  board_runner_args(jlink "--device=STM32H747XI_M4" "--speed=4000")
9  board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_nicla_vision_m4.cfg")
10  board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
11endif()
12board_runner_args(dfu-util "--pid=2341:035f" "--alt=0" "--dfuse")
13board_runner_args(blackmagicprobe "--connect-rst")
14
15include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
16include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
17include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
18include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
19