nrfutil dfu ble failure: pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT

Hi,

I am trying to to perform a DFU update to my device using an ANNA-B112 evaluation kit connected to my Ubuntu machine. The device supports DFU update. Here's what I'm doing and the result:

> nrfutil dfu ble -pkg MyPackage.zip -ic NRF52 -p /dev/ttyACM1 -n "MyDevice" -f

Board already flashed with connectivity firmware.
  [------------------------------------]    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 474, in open
  File "nordicsemi/dfu/dfu_transport_ble.py", line 103, in open
  File "pc_ble_driver_py/ble_driver.py", line 106, in wrapper
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT
[2665744] Failed to execute script '__main__' due to unhandled exception!

With this little information in the error message and the way nrfutil is distributed nowadays, it is pretty hard to start debugging this issue. What is actually failing here and any ideas to fix it?

Related