From 52ebf6f821933272e6cccfab8024fa0ee2792911 Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk <66371704+kkasperczyk-no@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:47:21 +0100 Subject: [PATCH] [cp-caps] replace nrfjprog with nrfutil in docs (#11356) Nrfjprog is not longer recommended and was replaced by the nrfutil. Replaced documentation occurrences mentioning nrfjprog with nrfutil. --- src/posix/README.md | 7 +++++-- tools/cp-caps/README.md | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/posix/README.md b/src/posix/README.md index ccffb3612..af913ab22 100644 --- a/src/posix/README.md +++ b/src/posix/README.md @@ -118,8 +118,11 @@ To build and program the device with RCP application, complete the following ste b. nRF52840 Development Kit ```sh - # Program the image using the nrfjprog utility. - nrfjprog -f nrf52 --chiperase --program build/bin/ot-rcp.hex --reset + # Program the image using the nrfutil utility. + nrfutil device program --firmware build/bin/ot-rcp.hex --options chip_erase_mode=ERASE_ALL + + # Reset the development kit using the nrfutil utility. + nrfutil device reset --reset-kind=RESET_PIN ``` Disable the Mass Storage feature on the device, so that it does not interfere with the core RCP functionalities: diff --git a/tools/cp-caps/README.md b/tools/cp-caps/README.md index c6a5c761e..f1977434e 100644 --- a/tools/cp-caps/README.md +++ b/tools/cp-caps/README.md @@ -43,7 +43,8 @@ $ git submodule update --init $ ./script/bootstrap $ ./script/build nrf52840 UART_trans -DOT_DIAGNOSTIC=ON -DOT_CSL_RECEIVER=ON -DOT_LINK_METRICS_INITIATOR=ON -DOT_LINK_METRICS_SUBJECT=ON -DOT_WAKEUP_COORDINATOR=ON $ arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex -$ nrfjprog -f nrf52 --chiperase --program ot-cli-ftd.hex --reset +$ nrfutil device program --firmware ot-cli-ftd.hex --options chip_erase_mode=ERASE_ALL +$ nrfutil device reset --reset-kind=RESET_PIN ``` ## Test Commands