Nordic has a new tool, nRF Util (`nrfutil`) which is replacing the previous set of command-line tools (particularly `nrfjprog`) that Zephyr had been using by default in many of the boards to flash the firmware onto the device. Since nRF Util is already mature and is going to be replacing the existing tools, including `nrfjprog`, it is now a good time to change the default flash tool to reflect this fact. Note that `nrfjprog` support is not being removed at all, but this may be a breaking change for users that do not have nRF Util installed. For this reason we also add a note in the migration guide. More info: https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-util-unified-command-line-utility Installation: https://www.nordicsemi.com/Products/Development-tools/nrf-util Documentation: https://docs.nordicsemi.com/bundle/nrfutil/page/README.html Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
22 lines
941 B
CMake
22 lines
941 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_BOARD_CTCC_NRF52840)
|
|
board_runner_args(nrfjprog "--softreset")
|
|
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
|
|
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
elseif(CONFIG_BOARD_CTCC_NRF9161 OR CONFIG_BOARD_CTCC_NRF9161_NS)
|
|
if(CONFIG_BOARD_CTCC_NRF9161_NS)
|
|
set(TFM_PUBLIC_KEY_FORMAT "full")
|
|
endif()
|
|
if(CONFIG_TFM_FLASH_MERGED_BINARY)
|
|
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
|
endif()
|
|
board_runner_args(nrfjprog "--softreset")
|
|
board_runner_args(pyocd "--target=nrf9161" "--frequency=4000000")
|
|
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
endif()
|