1# SPDX-License-Identifier: Apache-2.0
2
3if(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M7)
4board_runner_args(jlink "--device=STM32H747XI_M7" "--speed=4000")
5board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m7.cfg")
6board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
7elseif(CONFIG_BOARD_ARDUINO_GIGA_R1_STM32H747XX_M4)
8board_runner_args(jlink "--device=STM32H747XI_M4" "--speed=4000")
9board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_arduino_giga_r1_m4.cfg")
10board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
11endif()
12board_runner_args(dfu-util "--pid=2341:0366" "--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