boards: infineon: cyw920829m2evk_02: set openocd target handle

Openocd target cyw20829 does not define _TARGETNAME which is used by
default by the openocd west runner when using CONFIG_DEBUG_THREAD_INFO.

This is similar to the issue previously addressed for STM32H7:

Link: https://github.com/zephyrproject-rtos/zephyr/issues/45778

Signed-off-by: Hakan Jansson <hakan.jansson@infineon.com>
This commit is contained in:
Hakan Jansson 2024-10-21 15:47:57 +02:00 committed by Anas Nashif
parent 2eda6df48a
commit 8e4dc4e7fa

View file

@ -1,6 +1,7 @@
# Copyright (c) 2024 Cypress Semiconductor Corporation.
# SPDX-License-Identifier: Apache-2.0
board_runner_args(openocd "--target-handle=TARGET.cm33")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
board_runner_args(jlink "--device=CYW20829_tm")
include (${ZEPHYR_BASE}/boards/common/jlink.board.cmake)