1# SPDX-License-Identifier: Apache-2.0 2# Copyright (c) 2020 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com> 3# Copyright (c) 2024 Tomas Jurena <jurena@utb.cz> 4 5# keep first 6if(CONFIG_STM32_MEMMAP) 7board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") 8board_runner_args(stm32cubeprogrammer "--extload=MT25TL01G_STM32H745I-DISCO.stldr") 9else() 10board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") 11endif() 12 13board_runner_args(jlink "--device=STM32H745XI" "--speed=4000") 14if(CONFIG_BOARD_STM32H745I_DISCO_STM32H745XX_M7) 15board_runner_args(openocd --target-handle=_CHIPNAME.cpu0) 16elseif(CONFIG_BOARD_STM32H745I_DISCO_STM32H745XX_M4) 17board_runner_args(openocd --target-handle=_CHIPNAME.cpu1) 18endif() 19 20# keep first 21include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) 22include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) 23include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) 24