@@ -358,7 +358,7 @@ To use this script, complete the following steps:
358
358
> `factory_data.hex` and `factory_data.bin` files are created in the
359
359
> `output` directory. The first file contains the required memory offset.
360
360
> For this reason, it can be programmed directly to the device using a
361
- > programmer (for example, `nrfjprog `).
361
+ > programmer (for example, `nrfutil device `).
362
362
363
363
l. (optional) The maximum partition size in device's NVM memory, where
364
364
factory data will be stored.
@@ -372,7 +372,7 @@ To use this script, complete the following steps:
372
372
> `factory_data.hex` and `factory_data.bin` files are created in the
373
373
> `output` directory. The first file contains the required memory offset.
374
374
> For this reason, it can be programmed directly to the device using a
375
- > programmer (for example, `nrfjprog `).
375
+ > programmer (for example, `nrfutil device `).
376
376
377
377
4. Run the script using the prepared list of arguments:
378
378
@@ -766,7 +766,7 @@ $ python scripts/tools/nrfconnect/nrfconnect_generate_partition.py -i build/ligh
766
766
As a result, `factory_data.hex` and `factory_data.bin` files are created in the
767
767
`/build/light_bulb/zephyr/` directory. The first file contains the memory
768
768
offset. For this reason, it can be programmed directly to the device using a
769
- programmer (for example, `nrfjprog `).
769
+ programmer (for example, `nrfutil device `).
770
770
771
771
<hr>
772
772
@@ -901,22 +901,15 @@ achieve the desired behavior of your application.
901
901
## Programming factory data
902
902
903
903
The HEX file containing factory data can be programmed into the device's flash
904
- memory using `nrfjprog ` and the J-Link programmer. To do this, use the following
904
+ memory using `nrfutil device ` and the J-Link programmer. To do this, use the following
905
905
command:
906
906
907
907
```
908
- $ nrfjprog --program factory_data.hex
908
+ $ nrfutil device program --firmware factory_data.hex
909
909
```
910
910
911
- In this command, you can add the `--family` argument and provide the name of the
912
- DK: `NRF52` for the nRF52840 DK or `NRF53` for the nRF5340 DK. For example:
913
-
914
- ```
915
- $ nrfjprog --family NRF52 --program factory_data.hex
916
- ```
917
-
918
- > Note: For more information about how to use the `nrfjprog` utility, visit
919
- > [Programming SoCs with nrfjprog](https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe.html)
911
+ > Note: For more information about how to use the `nrfutil device` utility, visit
912
+ > [Programming SoCs with nrfutil's device module](https://docs.nordicsemi.com/bundle/nrfutil/page/README.html)
920
913
921
914
Another way to program the factory data to a device is to use the nRF Connect
922
915
platform build system described in
0 commit comments