This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfutil.exe - how to generate correct file for DFU?

I am having an application for nRF51822 with S110 soft device, and setting up DFU. There's now bootloader running. On my Windows PC, I am trying like this:

nrfutil dfu genpkg --application myapp.hex --application-version 0xffffffff --dev-type 0xffff --dev-revision 0xffff --sd-req 0x45,0x5a myapp.zip

and the command responses like:

Zip created at myapp.zip

Fine this far. However, when I use nRFTool to DFU with the generated file, it says the file is invalid and I can't try uploading. If I instead generate .dat file similarly, I can start uploading but then it just jams.

How should I generate the package, actually?

Parents
  • I have used this: C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf>n rfutil.exe dfu genpkg application.zip --application application.hex --applicatio n-version 0xffffffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0xfffe and it works fine for me, in your case problem may be with softdevice version. and try writing zip package name after genpkg.

    I have also verified my application.zip by ota on nrf.

Reply
  • I have used this: C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf>n rfutil.exe dfu genpkg application.zip --application application.hex --applicatio n-version 0xffffffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0xfffe and it works fine for me, in your case problem may be with softdevice version. and try writing zip package name after genpkg.

    I have also verified my application.zip by ota on nrf.

Children
No Data
Related