Skip to content

Commit cdbfed3

Browse files
author
Mahesh Venkitachalam
authored
Update ota-prog.md
1 parent 200bf71 commit cdbfed3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ota-prog.md

+9
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ example *_build* directory. This will be similar to: *nRF5_SDK_12.2.0_f012efa\e
5252

5353
* Run: `nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52832_xxaa.hex --sd-req 0x8C --key-file private.key app_dfu_hrs_package.zip`
5454

55+
You can also automate this step by adding the following in your project's *Makefile*:
56+
57+
```
58+
# make DFU package
59+
dfupkg:
60+
@echo Generating DFU package...
61+
nrfutil pkg generate --hw-version 52 --application-version 1 --application $(OUTPUT_DIRECTORY)/nrf52832_xxaa.hex --sd-req 0x8C --key-file ../../../private.key forcesensor_dfu_package.zip
62+
```
63+
5564
![](images/generate-package.png)
5665

5766
*Note:* Use *--sd-req = 0x8C* for s132_nrf52_3.0.0 and *--sd-req = 0x98* for s132_nrf52_4.0.2.

0 commit comments

Comments
 (0)