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

NRFUTIL

Hello,
I have problem during dfu otau over ble connection.
I use linux version of the nrfutil - my OS version is Linux-4.9.0-3-amd64-x86_64-with-debian-9.1
In some cases i get error code 13 when i try to start the ota update.
It happens randomly, to remove it i have to reset the dongle i'm using to update.
Can you tell my what this error is about and how can i avoid it?

  • Could you take a screenshot when the issue happens ? Which device/board you used as the backend for nrfutil ?

  • I use NRF52 board flashed with connectivity firmware.

    I connect to the computer via ssh, so i can only give you logs from nrfutil:

    Traceback (most recent call last):
    File "/usr/local/bin/nrfutil", line 11, in <module>
    load_entry_point('nrfutil==3.2.0', 'console_scripts', 'nrfutil')()
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/nrfutil-3.2.0-py2.7.egg/nordicsemi/__main__.py", line 746, in ble
    dfu.dfu_send_images()
    File "/usr/local/lib/python2.7/dist-packages/nrfutil-3.2.0-py2.7.egg/nordicsemi/dfu/dfu.py", line 122, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
    File "/usr/local/lib/python2.7/dist-packages/nrfutil-3.2.0-py2.7.egg/nordicsemi/dfu/dfu.py", line 83, in _dfu_send_image
    self.dfu_transport.open()
    File "/usr/local/lib/python2.7/dist-packages/nrfutil-3.2.0-py2.7.egg/nordicsemi/dfu/dfu_transport_ble.py", line 227, in open
    self.dfu_adapter.open()
    File "/usr/local/lib/python2.7/dist-packages/nrfutil-3.2.0-py2.7.egg/nordicsemi/dfu/dfu_transport_ble.py", line 87, in open
    self.adapter.driver.open()
    File "/usr/local/lib/python2.7/dist-packages/pc_ble_driver_py/ble_driver.py", line 126, in wrapper
    raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
    pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13

  • It looks like the python code can't open and connect to the UART port of the nRF52. We also have this issue some time with NRFConnect. We currently don't have a solution for this except unplug the board and plug it back. The reason could be because of the Segger interface chip. 

Related