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

nRF51822 nrfutil dfu ble

Hello Nordic team

I am working on nRF51822 MCU.

My question is I can generate the DFU zip file and it working with nRFConnect and nRF Tool Box mobile application. But when I am trying to upload the file via nrfutill dfu ble it gave following errors:

No target selected. Default device name: DfuTarg is used.
Please select connectivity serial port:
0 : COM8 - 682271192
1 : COM17 - 681155878
Enter your choice: : 0
Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1133, in <module>
File "site-packages\click\core.py", line 722, in __call__
File "site-packages\click\core.py", line 697, in main
File "site-packages\click\core.py", line 1066, in invoke
File "site-packages\click\core.py", line 1066, in invoke
File "site-packages\click\core.py", line 895, in invoke
File "site-packages\click\core.py", line 535, in invoke
File "nordicsemi\__main__.py", line 945, in ble
File "nordicsemi\dfu\dfu.py", line 71, in __init__
File "nordicsemi\dfu\package.py", line 571, in unpack_package
File "nordicsemi\dfu\manifest.py", line 202, in from_json
TypeError: __init__() got an unexpected keyword argument 'dfu_version'
Failed to execute script __main__

I used following command:

nrfutil dfu ble -ic NRF52 -pkg app_dfu_package.zip -p COM3 -n "MyDevice" -f

Also, help me how to use nRFConnect PC software to upload DFU file?

Please help me why above error I received and how to use nRFConnect PC software to send DFU file.

Any help will be appreciated.

Regards

Raj
Parents Reply Children
  • Hi.

    Which SDK do you use?

    The DFU package format transitioned from legacy to modern in SDK 12.0. Depending on the SDK version that you are using you will need to select a release of this tool compatible with it:

    • Version 0.5.2 generates legacy firmware packages compatible with nRF SDK 11.0 and older
    • Versions 1.5.0 and later generate modern firmware packages compatible with nRF SDK 12.0 and newer
    • Versions 4.0.0 and later generate modern firmware packages compatible with nRF SDK 15.1 and newer
    Rajneesh said:
    So, your reply doesn't help me

     Regardless of this not working right away you need to use the "-ic NRF51" tag when you have a nRF51 board.

    Rajneesh said:
    I am using nrfutil version is 0.3.0 to create dfu package and also using same version of nrfutil for update DFU zip file over ble.

     nrfutil version 0.3.0.0 is the Mesh version.

    Best regards,

    Andreas

Related