pc-ble-driver on arm 64

Hi,

  • I'm trying to run a pc-ble-driver on Arm64 arc
  • I've compiled the pc-ble-driver to arm 64 from this release: ARM64-linux pc-ble-driver origin/release/4.1.2
  • I used cmake 3.20.5 to build: edited the nrf-ble-driver.cmake file by adding:

if(${ARCH} STREQUAL arm)
    set(ARCH_BITS 32)
elseif(${ARCH} STREQUAL aarch64)
    set(ARCH_BITS 64)

and building the driver.

  • I'm using a Laired dongle BL654 (nRF52840) Bluetooth 5 - Nordic SDK with this program: connectivity_4.1.2_usb_with_s132_5.1.0.hex
  • After running for some time on Debian OS with arm64 I'm getting regularly exceptions from the driver (some of them I logged):

1. double free or corruption (fasttop)
munmap_chunk(): invalid pointer
Aborted
error Command failed with exit code 134.

2. terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_create
Aborted
error Command failed with exit code 134.

3. Segmentation fault
error Command failed with exit code 139.

4. error: [libs/bleAdapter] BLE �>x��x���Dx��0x��px���Jx��
error: [libs/bleAdapter] BLE p�1���x���HP/PUb/�2����j)/��x��
free(): double free detected in tcache 2
PuTTYPuTTYPuTTYAborted
error Command failed with exit code 134.

5. terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

6. error: [libs/bleAdapter] BLE �|��|��A] type:
ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
Segmentation fault
error Command failed with exit code 139.

7. error: [libs/bleAdapter] BLE �`���`��01 8a 00 00 00 00 ] type:
VENDOR_SPECIFIC reliable:yes seq#:7 ack#:1 payload_length:6 data_integrity:1 header_checksum:c3 err_code:0x0
double free or (out)
Aborted
error Command failed with exit code 134.

8.error: [libs/bleAdapter] BLE WT�� �T��`iT�� T��@T����T��
PuTTYSegmentation fault
error Command failed with exit code 139.

9.error: [libs/bleAdapter] BLE pt��pt��2 1d 00 ff ff 02 cf b2 7b 6b ae cc 00 00 00 00 00 03 00 ae 00 0d 01 03 19 00 00 02 01 06 05 09 45 54 61 67 ] type: VENDOR_SPECIFIC reliable:yes seq#:1 ack#:4 payload_length:24 data_integrity:1 header_checksum:cf err_code
double free or corruption (!prev)
Aborted

  • Running with the official pc-ble-driver on intel based architecture Ubuntu\Windows pc's runs smoothly (beside of some driver errors once in a while)

 

$ npm install pc-ble-driver-js

Could this be a problem with the driver? Can someone help us at Nordic?

Litaf

Related