@@ -126,7 +126,10 @@ Option 1: Using the Built-In Bootloader Only
126
126
The board is factory-programmed with Nordic's bootloader from Nordic's nRF5
127
127
SDK. With this option, you'll use Nordic's `nrfutil `_ program to create
128
128
firmware packages supported by this bootloader and flash them to the
129
- device. Make sure ``nrfutil `` is installed before proceeding.
129
+ device. Before proceeding make sure:
130
+
131
+ * ``nrfutil `` is installed.
132
+ * The ``nrf5sdk-tools `` command is installed within ``nrfutil ``.
130
133
131
134
#. Reset the board into the Nordic bootloader by pressing the RESET button.
132
135
@@ -151,16 +154,19 @@ device. Make sure ``nrfutil`` is installed before proceeding.
151
154
152
155
.. code-block :: console
153
156
154
- nrfutil pkg generate --hw-version 52 --sd-req=0x00 \
155
- --application build/zephyr/zephyr.hex \
156
- --application-version 1 blinky.zip
157
+ nrfutil nrf5sdk-tools pkg generate \
158
+ --hw-version 52 \
159
+ --sd-req=0x00 \
160
+ --application build/zephyr/zephyr.hex \
161
+ --application-version 1 \
162
+ blinky.zip
157
163
158
164
#. Flash it onto the board. Note :file: `/dev/ttyACM0 ` is for Linux; it will be
159
165
something like ``COMx `` on Windows, and something else on macOS.
160
166
161
167
.. code-block :: console
162
168
163
- nrfutil dfu usb-serial -pkg blinky.zip -p /dev/ttyACM0
169
+ nrfutil nrf5sdk-tools dfu usb-serial -pkg blinky.zip -p /dev/ttyACM0
164
170
165
171
When this command exits, observe the green LED on the board blinking,
166
172
instead of the red LED used by the bootloader.
@@ -198,16 +204,19 @@ to the zephyr repository on your computer.
198
204
199
205
.. code-block :: console
200
206
201
- nrfutil pkg generate --hw-version 52 --sd-req=0x00 \
202
- --application build/mcuboot/zephyr/zephyr.hex \
203
- --application-version 1 mcuboot.zip
207
+ nrfutil nrf5sdk-tools pkg generate \
208
+ --hw-version 52 \
209
+ --sd-req=0x00 \
210
+ --application build/mcuboot/zephyr/zephyr.hex \
211
+ --application-version 1 \
212
+ mcuboot.zip
204
213
205
214
#. Flash it onto the board. Note :file: `/dev/ttyACM0 ` is for Linux; it will be
206
215
something like ``COMx `` on Windows, and something else on macOS.
207
216
208
217
.. code-block :: console
209
218
210
- nrfutil dfu usb-serial -pkg mcuboot.zip -p /dev/ttyACM0
219
+ nrfutil nrf5sdk-tools dfu usb-serial -pkg mcuboot.zip -p /dev/ttyACM0
211
220
212
221
You can now flash a Zephyr application to the board using MCUboot's serial
213
222
recovery mode. We'll use the :zephyr:code-sample: `smp-svr ` sample since it's ready to be
@@ -341,7 +350,7 @@ References
341
350
.. _Nordic Semiconductor USB DFU :
342
351
https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/sdk_app_serial_dfu_bootloader.html
343
352
.. _nrfutil :
344
- https://github. com/NordicSemiconductor/pc-nrfutil
353
+ https://www.nordicsemi. com/Products/Development-tools/nrf-util
345
354
.. _MCUboot :
346
355
https://github.com/JuulLabs-OSS/mcuboot
347
356
.. _mcumgr :
0 commit comments