1# SPDX-License-Identifier: Apache-2.0
2
3include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
4
5if(CONFIG_BOARD_NRF9280PDK_NRF9280_CPUAPP OR CONFIG_BOARD_NRF9280PDK_NRF9280_CPURAD)
6  if(CONFIG_BOARD_NRF9280PDK_NRF9280_CPUAPP)
7    set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf9280_cpuapp.JLinkScript)
8  else()
9    set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf9280_cpurad.JLinkScript)
10  endif()
11
12  board_runner_args(jlink "--device=CORTEX-M33" "--speed=4000" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE}")
13  include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
14endif()
15