2024-03-06 14:15:06 +08:00
|
|
|
#
|
|
|
|
# Copyright 2024 NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
if(CONFIG_SOC_MCXN947_CPU0)
|
|
|
|
board_runner_args(jlink "--device=MCXN947_M33_0" "--reset-after-load")
|
2024-03-29 00:02:26 +08:00
|
|
|
board_runner_args(linkserver "--device=MCXN947:FRDM-MCXN947")
|
|
|
|
board_runner_args(linkserver "--core=cm33_core0")
|
2024-03-06 14:15:06 +08:00
|
|
|
board_runner_args(linkserver "--override=/device/memory/1/flash-driver=MCXN9xx_S.cfx")
|
|
|
|
board_runner_args(linkserver "--override=/device/memory/1/location=0x10000000")
|
2024-03-26 05:35:33 +08:00
|
|
|
# Linkserver v1.4.85 and earlier do not include the secure regions in the
|
|
|
|
# MCXN947 memory map, so we add them here
|
|
|
|
board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x30000000\",\
|
|
|
|
\"size\":\"0x00060000\",\"type\":\"RAM\"\}")
|
|
|
|
board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x30060000\",\
|
|
|
|
\"size\":\"0x00008000\",\"type\":\"RAM\"\}")
|
|
|
|
# Define region for peripherals
|
|
|
|
board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x50000000\",\
|
|
|
|
\"size\":\"0x00140000\",\"type\":\"RAM\"\}")
|
2024-03-06 14:15:06 +08:00
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "Support for cpu1 not available yet")
|
|
|
|
endif()
|
|
|
|
|
2024-05-07 20:40:10 +08:00
|
|
|
# Pyocd support added with the NXP.MCXN947_DFP.17.0.0.pack CMSIS Pack
|
|
|
|
board_runner_args(pyocd "--target=mcxn947")
|
2024-03-06 14:15:06 +08:00
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
2024-05-07 20:40:10 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|