Skip to content

Commit 5eeeac3

Browse files
xtremekforeverrauhul
authored andcommitted
Change nrfx-blink-sdk README.md to list using nrfutil instead of nrfjprog
1 parent ddbdc34 commit 5eeeac3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

nrfx-blink-sdk/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This example demonstrates how to integrate with the Zephyr SDK via CMake and how
1111
- The West build system.
1212
- A Python virtualenv for Zephyr.
1313
- Zephyr SDK/toolchain.
14-
- Host flash/debug tools for the board you're using. For example, for the nRF52840-DK board you'll need the [nRF Command Line Tools](https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools).
14+
- Host flash/debug tools for the board you're using. For example, for the nRF52840-DK board you'll need the [nRF Util](https://www.nordicsemi.com/Products/Development-tools/nRF-Util).
1515

1616
- Before trying to use Swift with the Zephyr SDK, make sure your environment works and can build the provided C/C++ sample projects, in particular:
1717
- Try building and running the "simple/blink" example from Zephyr written in C.
@@ -20,7 +20,8 @@ This example demonstrates how to integrate with the Zephyr SDK via CMake and how
2020

2121
- Make sure you have a recent nightly Swift toolchain that has Embedded Swift support.
2222
- Build the program in the Zephyr virtualenv, specify the target board type via the `-DBOARD=...` CMake setting:
23-
``` console
23+
24+
```console
2425
$ cd nrfx-blink-sdk
2526
$ source ~/zephyrproject/.venv/bin/activate
2627
(.venv) cmake -B build -G Ninja -DBOARD=nrf52840dk/nrf52840 -DUSE_CCACHE=0 .
@@ -30,11 +31,12 @@ $ source ~/zephyrproject/.venv/bin/activate
3031
## Running
3132

3233
- Connect the nRF52840-DK board over a USB cable to your Mac using the J-Link connector on the board.
33-
- Use `nrfjprog` to upload the firmware and to run it:
34+
- Use the `nrfutil device` command to upload the firmware and to run it:
3435

3536
```console
36-
(.venv) nrfjprog --recover --program build/zephyr/zephyr.hex --verify
37-
(.venv) nrfjprog --run
37+
(.venv) nrfutil device program --firmware build/zephyr/zephyr.hex
38+
(.venv) nrfutil device fw-verify --firmware build/zephyr/zephyr.hex
39+
(.venv) nrfutil device reset
3840
```
3941

4042
- The green LED should now be blinking in a pattern.

0 commit comments

Comments
 (0)