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

How to OTA DFU my DUT via nrf52840 dongle by PC

I am trying to update the DUT(Device Under Test) via nrf52840 Dongle with PC(ubuntu16.04/windows10) by the command as below:

nrfutil dfu ble -ic NRF52 -pkg OTA_DFU.zip -p /dev/ttyACM0 -a C27ACE6B0EE9

And error occurs as below:

Traceback (most recent call last):
  File "/home/waydy_chou/.local/bin/nrfutil", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/nordicsemi/__main__.py", line 1163, in ble
    dfu.dfu_send_images()
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/nordicsemi/dfu/dfu.py", line 127, in dfu_send_images
    self._dfu_send_image(self.manifest.bootloader)
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/nordicsemi/dfu/dfu.py", line 92, in _dfu_send_image
    self.dfu_transport.open()
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/nordicsemi/dfu/dfu_transport_ble.py", line 459, in open
    self.dfu_adapter.open()
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/nordicsemi/dfu/dfu_transport_ble.py", line 117, in open
    self.adapter.driver.ble_enable(ble_enable_params)
  File "/home/waydy_chou/.local/lib/python2.7/site-packages/pc_ble_driver_py/ble_driver.py", line 127, in wrapper
    raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_enable. Error code: 3

But, when I used pca100056 DK board(instead nrf52840 Dongle), it worked well.

Do you have any idea, what happended? 

env:

ubuntu:16.04

nrfutil: 5.2.5

pc-ble-driver-py:0.11.4

Parents Reply Children
Related