blob: 40792b08ad5044ea72d9bfaefd4e8dd4b083d50f [file] [log] [blame]
# Copyright (c) 2025 Infineon Technologies AG,
# or an affiliate of Infineon Technologies AG.
#
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_CPU_CORTEX_M55)
# Connect to the second port for CM55 (default port is 3333)
board_runner_args(openocd "--gdb-init=target extended-remote :3334")
endif()
board_runner_args(openocd --no-load --no-targets --no-halt)
board_runner_args(openocd "--gdb-init=maint flush register-cache")
board_runner_args(openocd "--gdb-init=tb main")
board_runner_args(openocd "--gdb-init=continue")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
if(CONFIG_CPU_CORTEX_M33 AND CONFIG_TRUSTED_EXECUTION_SECURE)
set_property(TARGET runners_yaml_props_target
PROPERTY hex_file ${ZEPHYR_BINARY_DIR}/${KERNEL_NAME}.signed.hex)
endif()