1# SPDX-License-Identifier: Apache-2.0
2
3# keep first
4if(CONFIG_STM32_MEMMAP)
5board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
6board_runner_args(stm32cubeprogrammer "--extload=MX25LM51245G_STM32H573I-DK-RevB-SFIx.stldr")
7else()
8board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
9endif()
10
11board_runner_args(pyocd "--target=stm32h573iikx")
12
13board_runner_args(openocd "--tcl-port=6666")
14board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")
15board_runner_args(openocd "--no-halt")
16
17# keep first
18include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
19include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
20include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
21# FIXME: official openocd runner not yet available.
22