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

DFU - what is "Init packet file" (*.dat) and how to get it?

I now have my app.hex and bootloader is running at nRF51822 and yet, the nRF Toolbox finds "DfuTarg" as expected. However, after selecting my file the UI surprisingly starts to ask about "Init packet" and I just say "NO", because I don't have such a thing anywhere.

Yep, right, the device firmware upload fails after that! Great. Two times it complained about missing init data or something, and two times the error was something else.

So, how to get that stupid .dat file there? And sorry, I am a bit frustrated after yet another fruitless day... complains removed

Parents
  • I was able to generate a working zip file with a command:

    C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf>nrfutil dfu genpkg --application myapp.hex --application-version 0xffffffff --dev-type 0xffff --dev-revision 0xffff --sd-req 0x64,0x45,0x5a myapp.zip
    
    Zip created at myapp.zip
    

    And the upload must be done by selecting "zip distribution packet" from nRFTools' DFU dialog box.

Reply
  • I was able to generate a working zip file with a command:

    C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf>nrfutil dfu genpkg --application myapp.hex --application-version 0xffffffff --dev-type 0xffff --dev-revision 0xffff --sd-req 0x64,0x45,0x5a myapp.zip
    
    Zip created at myapp.zip
    

    And the upload must be done by selecting "zip distribution packet" from nRFTools' DFU dialog box.

Children
Related