-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathboard.cmake
More file actions
21 lines (17 loc) · 1.07 KB
/
board.cmake
File metadata and controls
21 lines (17 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2026 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
if(CONFIG_BOARD_NRF9251DK_NRF9251_CPUAPP)
set(jlink_script_file ${CMAKE_CURRENT_LIST_DIR}/support/nrf9251_cpuapp.JLinkScript)
board_runner_args(jlink "--device=CORTEX-M33" "--speed=4000" "--tool-opt=-jlinkscriptfile ${jlink_script_file}")
endif()
if(CONFIG_SOC_NRF9251_CPUPPR)
set(jlink_script_file ${CMAKE_CURRENT_LIST_DIR}/support/nrf9251_cpuppr.JLinkScript)
# Workaround: Use device nRF54L15_RV32 until something else is defined.
board_runner_args(jlink "--device=nRF54L15_RV32" "--speed=4000" "--tool-opt=-jlinkscriptfile ${jlink_script_file}")
elseif(CONFIG_SOC_NRF9251_CPUFLPR)
set(jlink_script_file ${CMAKE_CURRENT_LIST_DIR}/support/nrf9251_cpuflpr.JLinkScript)
# Workaround: Use device nRF54L15_RV32 until something else is defined.
board_runner_args(jlink "--device=nRF54L15_RV32" "--speed=4000" "--tool-opt=-jlinkscriptfile ${jlink_script_file}")
endif()
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)