zephyr/boards/arm/nucleo_h7a3zi_q/board.cmake
Erwan Gouriou be217004a1 boards: stm32h7: Update openocd runner to specify target handle
Openocd scripts for STM32H7 SoCs use _CHIPNAME.cpu{0|1} as
target handle.
Specify this thanks to new openocd runner option '-target-handle'.

This is required to allow thread awareness debugging on these targets.

Fixes #45778

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-05-24 08:52:16 -07:00

10 lines
410 B
CMake

# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=STM32H7A3ZI" "--speed=4000")
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset=hw")
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)