DFU with nrfutil command line fails but succeeds with nrfconnect GUI

The DFU operation using the nrfutil and its command line interface on Windows PC fails with the following exception:

[------------------------------------] 0%
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 1215, in ble
File "nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
File "nordicsemi\dfu\dfu.py", line 88, in _dfu_send_image
File "nordicsemi\dfu\dfu_transport_ble.py", line 475, in open
File "nordicsemi\dfu\dfu_transport_ble.py", line 153, in connect
File "nordicsemi\dfu\dfu_transport_ble.py", line 264, in verify_stable_connection
Exception: Connection Failure - Device not found!
[35468] Failed to execute script '__main__' due to unhandled exception!

However, I am able to successfully update the firmware with nRFConnect  GUI app using the same device and MAC address.

  • Hi 

    Are you able to share the full console output, including the nrfutil commands and arguments?

    The "Device not found!" error indicates that no Bluetooth devices are advertising with the right BLE address or device name (as set by the nrfutil arguments). Can you check with a BLE sniffer or the nRF Connect for mobile/desktop application if the device is advertising when this error occurs?

    Best regards
    Torbjørn

Related