nrfutil tool fails to read the .zip DFU package

Hello . I saw this issue raised previously but with no resolution so here it is again

I built the smp-svr sample in VSCode with Zephyr SDK 2.6.1 which produced  a DFU package dfu_application.zip

I can successfully  update my device over BLE  with the Device Manager mobile app but nrfutil fails with the following error

./nrfutil.exe dfu ble -pkg /c/vd/samples/smp_svr/build-nrfdk/zephyr/dfu_application-.zip -ic NRF52 -p COM6 -a "EA:55:B0:DF:A9:6A"
Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1555, in <module>
File "click\core.py", line 1137, in __call__
File "click\core.py", line 1062, in main
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1404, in invoke
File "click\core.py", line 763, in invoke
File "nordicsemi\__main__.py", line 1209, in ble
File "nordicsemi\dfu\dfu.py", line 69, in __init__
File "nordicsemi\dfu\package.py", line 671, in unpack_package
File "nordicsemi\dfu\manifest.py", line 200, in from_json
KeyError: 'manifest'
[37460] Failed to execute script '__main__' due to unhandled exception!

I tried 

./nrfutil-6_12.exe pkg display /c/vd/samples/smp_svr/build-nrfdk/zephyr/dfu_application.zip with the same error

So appears that nrfutil fails to read the package

Looking through the forums I found one post that suggested to use the previous version of nrfutil. Tried 6.12 without success

Any ideas?

Thank you

Parents
  • Hello,

    I believe the issue may be due to the format of the manifest.json files generated by Zephyr build and nrfutil. I tested this to confirm by examining the manifest generated by nrfutil, and it appears different from the dfu_application.zip manifest. I am attaching the generated zip file here. Please note that I did not include the key for signing during package generation, so it is not present in the generated manifest. I recommend trying to generate the package using nrfutil and using that package for DFU

    dfu_application_util.zip

    Kind Regards,

    Abhijith

Reply
  • Hello,

    I believe the issue may be due to the format of the manifest.json files generated by Zephyr build and nrfutil. I tested this to confirm by examining the manifest generated by nrfutil, and it appears different from the dfu_application.zip manifest. I am attaching the generated zip file here. Please note that I did not include the key for signing during package generation, so it is not present in the generated manifest. I recommend trying to generate the package using nrfutil and using that package for DFU

    dfu_application_util.zip

    Kind Regards,

    Abhijith

Children
Related