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

DFU zip packet error

Dear Nordic Team,

Thanks for support.

I try to make zip file generation using command promt as per the nordic document(How to generate the INIT file for the DFU.pdf). Command : nrf dfu genpkg --application [application].hex --application-version [version] --softdevice [softdevice].hex --bootloader [bootloader].hex --dev-type [type] --dev-revision [revision] --sd-req [list of supported Soft Device ids] [name of the distribution packet].zip

Zip file was successfully generated but it contain the two bin files and two .dat file. But in example file contain one bin file and one dat file.

I want to know it was correct procedure?????

  • Hi Murugan,

    Yes, if you have provided nrfutil with an application.hex, a softdevice.hex and/or a bootloader.hex, i.e.

    nrf dfu genpkg --application application.hex --application-version 0xFFFFFFFF  --softdevice softdevice.hex --bootloader bootloader.hex --dev-type 0xFFFF --dev-revision 0xFFFF --sd-req 0xFFFE distribution_packet.zip
    

    then the softdevice.hex and bootloader.hex will be merged and converted into one .bin file, and the application.hex is converted to the second .bin file.

    If you generate a distribution zip with an application image only, as the example zip, then there will only be one .bin file in the zip.

    -Bjørn

  • Thanks for reply.

    Now i am facing new problem show in below

    Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\user>D:

    D:>DFU\nrfutil.exe dfu genpkg chec.zip --application AP.hex --softdevice SD.hex --bootloader BT.hex --application-version 0xFFFFFFFF --dev-revision 0xFFFF --de v-type 0xFFFF --sd-req 0xFFFE Traceback (most recent call last): File "main.py", line 303, in File "click\core.pyc", line 664, in call File "click\core.pyc", line 644, in main File "click\core.pyc", line 991, in invoke File "click\core.pyc", line 991, in invoke File "click\core.pyc", line 837, in invoke File "click\core.pyc", line 464, in invoke File "main.py", line 236, in genpkg File "nordicsemi\dfu\package.pyc", line 172, in generate_package File "nordicsemi\dfu\nrfhex.pyc", line 63, in init File "nordicsemi\dfu\intelhex_init.pyc", line 241, in loadfile File "nordicsemi\dfu\intelhex_init.pyc", line 191, in loadhex IOError: [Errno 2] No such file or directory: u'SD.hex'

    D:>

  • Have you added the location of nrfutil.exe to your PATH? Is the SD,BT and AP.hex files in the same directory from where you are running the terminal ?

  • Now working fine. Copy all all file in D folder. Remove the DFU Folder.

    Now i want to know the if possible all three hex file in one bin file and one dat file.

Related