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

Windows Command line DFU over BLE with PCA10059 problem

To the kind attention of Nordic support team,

I'm trying to do things like in https://devzone.nordicsemi.com/f/nordic-q-a/39630/windows-command-line-dfu-over-ble-with-pca10059 thread.

Even when not putting the -f option I'm having this report:

2020-02-26 17:42:44,231 Using connectivity board at serial port: COM6
2020-02-26 17:42:44,239 Sending Application image.
2020-02-26 17:42:47,676 Successfully opened COM6. Baud rate: 1000000. Flow control: none. Parity: none.
2020-02-26 17:42:47,677 evt> severity(20) message(Successfully opened COM6. Baud rate: 1000000. Flow control: none. Parity: none.)
2020-02-26 17:42:47,678 RpcAppStatus.resetPerformed: Target Reset performed
2020-02-26 17:42:47,678 evt> status code(RpcAppStatus.resetPerformed) message(Target Reset performed)
2020-02-26 17:42:48,884 RpcAppStatus.connectionActive: Connection active
2020-02-26 17:42:48,884 evt> status code(RpcAppStatus.connectionActive) message(Connection active)
Traceback (most recent call last):
File "C:\Users\astella\AppData\Local\Programs\Python\Python38\Scripts\nrfutil-script.py", line 11, in <module>
2020-02-26 17:42:50,388 Failed to receive response for command
load_entry_point('nrfutil==6.0.1', 'console_scripts', 'nrfutil')()
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 764, in __call__
2020-02-26 17:42:50,391 evt> severity(30) message(Failed to receive response for command)
return self.main(*args, **kwargs)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 717, in main
2020-02-26 17:42:50,392 RpcAppStatus.pktSendError: Error sending packet to target. Code: 0x8016
2020-02-26 17:42:50,393 evt> status code(RpcAppStatus.pktSendError) message(Error sending packet to target. Code: 0x8016)
rv = self.invoke(ctx)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\__main__.py", line 1144, in ble
dfu.dfu_send_images()
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\dfu\dfu.py", line 88, in _dfu_send_image
self.dfu_transport.open()
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\dfu\dfu_transport_ble.py", line 473, in open
self.dfu_adapter.open()
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\dfu\dfu_transport_ble.py", line 119, in open
self.adapter.driver.ble_cfg_set(
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\wrapt\wrappers.py", line 606, in __call__
return self._self_wrapper(self.__wrapped__, self._self_instance,
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 103, in wrapper
raise NordicSemiException(
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_cfg_set. Error code: NRF_ERROR_SD_RPC_SEND

When I'm putting the -f option:

nrfutil -vvvv dfu ble -ic NRF52 -pkg app26022020.zip -p COM6 -n "DfuTarg" -f
Traceback (most recent call last):
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 2732, in __init__
snr = [d.serial_number for d in serial_ports if d.port == serial_port][0]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\astella\AppData\Local\Programs\Python\Python38\Scripts\nrfutil-script.py", line 11, in <module>
load_entry_point('nrfutil==6.0.1', 'console_scripts', 'nrfutil')()
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\__main__.py", line 1120, in ble
flasher = Flasher(serial_port=port, snr = jlink_snr)
File "c:\users\astella\appdata\local\programs\python\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 2734, in __init__
raise NordicSemiException("Board not found: {}".format(serial_port or snr))
pc_ble_driver_py.exceptions.NordicSemiException: Board not found: COM6

In device manager I see nRF Connect USB CDC ACM (COM6), even switching off nRFConnect,plugging in and out PCA10059

I'm using nrfutil 6.0.1 version. and sdk15.2.

Thank you for your help

Parents Reply Children
No Data
Related