Import Error: _nrf_ble_driver_sd_api_v5.so: wrong ELF class: ELFCLASS64

Hello,

HW/Setup: raspberry pi 400, py lib blatann 0.5.0, pc_ble_driver v4.1.4 , nrf Dongle 52840 flashed with s132/softdevice v5

problem: Import Error , unable to load the driver

looks like the provided binary file _nrf_ble_driver_sd_api_v5.so supports Linux 64 bit and do not support the raspberry pi os Linux 32bit.

is there a driver supporting 32bit Linux devices?

Thanks,

Parents Reply Children
  • Hi Vidar,

    Could you please let me know why i am getting the below error?
            File "/mypath/lib/python3.9/site-packages/blatann/device.py", line 195, in open
              self.ble_driver.open()
            File "/mypath/lib/python3.9/site-packages/wrapt/wrappers.py", line 669, in __call__
              return self._self_wrapper(self.__wrapped__, self._self_instance,
            File "/mypath/lib/python3.9/site-packages/blatann/nrf/nrf_driver.py", line 80, in wrapper
              raise NordicSemiException('Failed to {}. {}'.format(wrapped.__name__, err_string), err_code)
          pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NrfError.rpc_h5_transport_state
    I again double checked the copied files from your built package on pi after installing the v17 for py3.9 but seems to be not working
    Thanks
    BR,
  • Hi,

    It appears that the BLE driver is failing to establish communication with your nRF52840 Dongle. Does the same dongle, with the same connectivity firmware, work when used with the same script on a PC?

  • Hi,

    Yes the same dongle flashed (only once) with same connectivity firmware using the same script works perfectly fine when run under windows.
    I'd also checked manually under windows scanning , connecting works fine with nRF desktop app.
    the error is coming when removed from win and inserted the dongle into Raspi 400 usb slot and run the same script?
    ofcourse I've updated the pc_ble_driver_py files provided by you for raspberry based on v16. 
    so steps on raspi:
       1. install pc_ble package v17
        2. overwrite the py files provided by you based on v16
        3. re run the script to initialise the dongle

    BR,
  • Hi, thanks for confirming. Do you know or remember what has changed with your setup since it stopped working?

  • Hi, Yes I found that the hex file for the dongle was incorrect. I reflashed the dongle with the hex file from your built package and it worked.

    Many Thanks,

    BR

Related