2024-05-09 18:38:00 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (c) 2020 Alexander Kozhinov <AlexanderKozhinov@yandex.com>
|
|
|
|
# Copyright (c) 2024 Tomas Jurena <jurena@utb.cz>
|
|
|
|
|
|
|
|
board_runner_args(jlink "--device=STM32H745XI" "--speed=4000")
|
|
|
|
if(CONFIG_BOARD_STM32H745I_DISCO_STM32H745XX_M7)
|
|
|
|
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
|
|
|
|
elseif(CONFIG_BOARD_STM32H745I_DISCO_STM32H745XX_M4)
|
|
|
|
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
|
|
|
|
endif()
|
2024-02-01 00:51:09 +08:00
|
|
|
|
|
|
|
if(CONFIG_STM32_MEMMAP)
|
|
|
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
|
|
|
board_runner_args(stm32cubeprogrammer "--extload=MT25TL01G_STM32H745I-DISCO.stldr")
|
|
|
|
else()
|
2024-05-09 18:38:00 +08:00
|
|
|
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
|
2024-02-01 00:51:09 +08:00
|
|
|
endif()
|
2024-05-09 18:38:00 +08:00
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
|
2024-02-01 00:51:09 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
2024-05-09 18:38:00 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|