zephyr/boards/nordic/nrf9280pdk/board.cmake

15 lines
599 B
CMake

# SPDX-License-Identifier: Apache-2.0
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
if(CONFIG_BOARD_NRF9280PDK_NRF9280_CPUAPP OR CONFIG_BOARD_NRF9280PDK_NRF9280_CPURAD)
if(CONFIG_BOARD_NRF9280PDK_NRF9280_CPUAPP)
set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf9280_cpuapp.JLinkScript)
else()
set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf9280_cpurad.JLinkScript)
endif()
board_runner_args(jlink "--device=CORTEX-M33" "--speed=4000" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE}")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
endif()