Skip to content

Commit

Permalink
boards: thingy91x: use nrfutil runner
Browse files Browse the repository at this point in the history
This patch uses the nrfutil runner by default for the Thingy:91x board.
Also, the device family option was removed for the nrfjprog runner.
The device family option is dangerous to use and should be avoided.
For nrfutil-device, a safeguard is being put in place to remedy that
problem, but nrfjprog will not be updated in that way.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
  • Loading branch information
maxd-nordic authored and rlubos committed Sep 16, 2024
1 parent bab647f commit 8f3a64f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boards/nordic/thingy91x/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

if(CONFIG_BOARD_THINGY91X_NRF9151 OR CONFIG_BOARD_THINGY91X_NRF9151_NS)
board_runner_args(nrfjprog "--nrf-family=NRF91")
board_runner_args(nrfjprog)
board_runner_args(nrfutil "--nrf-family=NRF91")
board_runner_args(jlink "--device=nRF9160_xxAA" "--speed=4000")
elseif(BOARD_THINGY91X_NRF5340_CPUAPP OR BOARD_THINGY91X_NRF5340_CPUAPP_NS)
board_runner_args(nrfjprog "--nrf-family=NRF53")
board_runner_args(nrfjprog)
board_runner_args(nrfutil "--nrf-family=NRF53")
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
elseif(BOARD_THINGY91X_NRF5340_CPUNET)
board_runner_args(nrfjprog "--nrf-family=NRF53")
board_runner_args(nrfjprog)
board_runner_args(nrfutil "--nrf-family=NRF53")
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
endif()

include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

0 comments on commit 8f3a64f

Please sign in to comment.