Enter the following command to generate a package called app_dfu_package.zip from the pplication file app.hex with application version 4 that requires hardware version 51 and oftDevice S130 v2.0.0 (0x80) and is signed with the private key that is stored in key.pem:
nrfutil nrf5sdk-tools pkg generate --hw-version 51 --sd-req 0x80 --application-version 4 --application app.hex --key-file key.pem app_dfu_package.zip
Note
- The
--hw-versionoption must correspond to the device used. - The
--sd-reqoption must correspond to the firmware ID of the SoftDevice present on the target device. Read more. - Not all combinations of Bootloader, SoftDevice, and Application are possible when generating a package. See DFU package combinations for more information.