is nrfutil 6.1.2 incompatible with softdevice version 6?

Hi. I have came into trouble with nrfutil and the provided images.

I have a board that's connected via usb to the computer and I am trying to use the connectivity firmware and nrfutil in order to perform a dfu over ble to another device.

I have flashed connectivity_4.1.4_usb_with_s140_6.1.1.hex from the release page of pc-ble-driver to my device and tried running the following command:

nrfutil-6.1.2.exe dfu ble -ic NRF52  -pkg $pkg

resulting in this error:

Enter your choice: : 3
[------------------------------------] 0%
Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1545, 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 1205, 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 152, in connect
File "pc_ble_driver_py\ble_driver.py", line 106, in wrapper
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_gap_scan_start. Error code: NRF_ERROR_SD_RPC_SEND
[9812] Failed to execute script '__main__' due to unhandled exception!

When trying to investigate the issue myself with pc-ble-driver sources the project "ble_connectivity_s140_usb_hci_pca10056" starts executing a little and prints

 <error> ser_conn: Command processing error: "Internal error during command decoding."

"ble_connectivity_s132v5_usb_hci_pca10056" project does work as intended with nrfutil but sadly I am trying to copy the connectivity functionality into my own software.

Any guidance regarding performing nrfutil with softdevice version 6 will be helpful.

Parents
  • Hi 

    The Python bindings are only compatible with version 5 of the SoftDevice unfortunately. 

    There is a patch available to make the connectivity examples in SDK v15.3.0 work with v5 of the SoftDevices, and I can share these with you if it could be of use. 

    Are you running the connectivity firmware on a custom board, or one of the devkits?

    Best regards
    Torbjørn

  • I am running a custom pcb, quite similar to pca10056.

    I had seen the pc-ble-driver sources and compiled them on my own if that's the patch you're refering to.

    What would the python binding and nrfutil require in order to make them compatible with version 6?

    is it just linking against a newer version of pc-ble-driver? or is pc-ble-driver-py (currently supporting pc-ble-driver 4.1.2) not supporting v6 despite pc-ble-driver suggesting it does?

Reply
  • I am running a custom pcb, quite similar to pca10056.

    I had seen the pc-ble-driver sources and compiled them on my own if that's the patch you're refering to.

    What would the python binding and nrfutil require in order to make them compatible with version 6?

    is it just linking against a newer version of pc-ble-driver? or is pc-ble-driver-py (currently supporting pc-ble-driver 4.1.2) not supporting v6 despite pc-ble-driver suggesting it does?

Children
Related