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

nrf.exe dfu genpkg help

Alright, so I am having a lot of trouble generating a valid zip file to update with nRF Toolbox (android).

I used nRFgo Studio to flash dfu_test_app_hrm.hex and dfu_test_bootloader_b.hex (from examples\dfu\ble_dfu_send_hex\test_images_update).

With nRF Toolbox, I can send over the dfu_test_bootloader_b.zip (from examples\dfu\ble_dfu_send_hex\test_images_update) with no problems.

Now I want to test generating my own zip. I extracted dfu_test_bootloader_b.bin from dfu_test_bootloader_b.zip and ran:

nrf.exe dfu genpkg my_test_bl.zip --bootloader dfu_test_bootloader_b.bin --dev-revision 0xffff --dev-type 0xffff --sd-req 0xffff

Trying to upload the generated my_test_bl.zip fails with "REMOTE DFU OPERATION FAILED (6)"

My guess is that the generated .dat file is wrong and so my nrf.exe dfu genpkg command above must be wrong.

Thanks for the help, Chris

Related