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

DFU dfu genpkg Issue

Hello,

I am trying to use the DFU genpkg tool provided by noric for a full application deployment (bootloader, SD, and application). When try tying to do the application alone the tool is succesful

Input:

nrf.exe dfu genpkg j1.zip --application application_nrf51822_xxac.bin --application-version 0xFFFFFFFF --dev-revision 2 --dev-type 1 --sd-req 0x0064

Output:

Zip created at j1.zip

However I attempt to add the bootloader and it doesn't work.

Input:

nrf.exe dfu genpkg j1.zip --application application_nrf51822_xxac.bin --application-version 0xFFFFFFFF --bootloader bootloader_nrf51822_xxac.bin --dev-revision 2 --dev-type 1 --sd-req 0x0064

Output:

image description

What is going on i thought the zip could put together multiple images?

Parents
  • Hi Lucas,

    In the provided screenshot you have forgotten to add the application version and the bootloader part(or maybe the screenshot has been cropped somehow, if so please provide a new screenshot).

    The zip can contain multiple files, but there are some limitiations. One of them is size constraint, see the calculations in this post to get a better idea on the order of magnitudes. nrf.exe lets you create files that are too large to perform DFU, this is not related to your current problem, but it's nice to have in mind.

    Finally there is also a git repository with a thorough guide on How to generate the INIT file for DFU. Here you can see that nrf.exe also supports .hex files as testy said.

  • Ok so the issue appears to be a size thing. My hex file for the bootloader is the proper size and works with a program it using the J-link. However, when I convert the bootloader file from hex to binary it increases in size. I'm using hex2bin to do the conversion. The document you posted appears to have a solution. Thank you.

Reply Children
No Data
Related