nRF54L15-DK Fails to Interact with BlueZ on Ubuntu Virtual Machine When Burning hci_uart Example

After flashing the official example hci_uar onto the nRF5415-DK, I proceeded to use "udo strace -o btattach.log btattach -B /dev/ttyACM1 -S 1000000 -R“ to bind it as an HCI device. However, the btattach process exits immediately after execution, preventing subsequent ”sudo hciconfig hci 0 up" from initializing the device. Why does this happen?

  • I think the problem is not with hci0 itself but that btattach detached too early and never left the UART line bound to the HCI socket. Run btattach in the background with correct UART parameters, and the kernel will then allow hci0 up successfully. Make sure that you build your device with the below configuration

    CONFIG_BT_HCI_UART=y
    CONFIG_BT_UART_ON_DEV_NAME="UART_0"
    CONFIG_BT=y
    CONFIG_BT_CTLR=y
    CONFIG_BT_HCI_RAW=y
    

Related