Skip to content

Commit

Permalink
boards: thingy91x: migrate to nrfutil
Browse files Browse the repository at this point in the history
This patch, in combination with a new nrfutil release
fixes the issue where it is very easy to brick thingy91x-nrf53 chips
by flashing the nrf91 image.

Signed-off-by: Maximilian Deubel <[email protected]>
  • Loading branch information
maxd-nordic authored and anangl committed Jun 18, 2024
1 parent a47529f commit 646eb86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions boards/nordic/thingy91x/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# 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(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(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
board_runner_args(nrfjprog "--nrf-family=NRF53")
board_runner_args(nrfutil "--nrf-family=NRF53")
elseif(BOARD_THINGY91X_NRF5340_CPUNET)
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
board_runner_args(nrfjprog "--nrf-family=NRF53")
board_runner_args(nrfutil "--nrf-family=NRF53")
endif()

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

0 comments on commit 646eb86

Please sign in to comment.