be217004a1
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>
12 lines
417 B
CMake
12 lines
417 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
board_runner_args(jlink "--device=STM32H745ZI" "--speed=4000")
|
|
if(CONFIG_BOARD_NUCLEO_H745ZI_Q_M7)
|
|
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
|
|
elseif(CONFIG_BOARD_NUCLEO_H745ZI_Q_M4)
|
|
board_runner_args(openocd --target-handle=_CHIPNAME.cpu1)
|
|
endif()
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|