How to use nrf54L15-dk with external host through hci uart application

Hi, 

I am trying to build an application using the nrf54L15-dk board and want to use the board as a controller. I run the application on the external host but got an error as controller responsive. Can you provide the details steps so that board can be use with external host.

Parents
  • Hi

    Can you share some details on what sample project you're based your own project on here? And what UART instance and pins on the nRF54L15 are you using for HCI UART here? Please note that some of the pins are not available on the DK, and the different instances have a set amount of pins that can be used (specific ports).

    Is either of these the sample you've based your project on by chance?

    Best regards,

    Simon

  • Hi,
    Thanks for your response.
    i am using the hci_uart application of Zephyr.

    Following is the nrf54l15dk_nrf54l15_cpuapp.overlay file i am using

    &uart20 {
    current-speed = <115200>;
    hw-flow-control;
    status = "okay";
    };

    &uart20_default {
    group1 {
    psels = <NRF_PSEL(UART_TX, 1, 11)>,
    <NRF_PSEL(UART_RTS, 0, 2)>;
    };
    group2 {
    psels = <NRF_PSEL(UART_RX, 1, 10)>,
    <NRF_PSEL(UART_CTS, 0, 3)>;
    bias-pull-up;
    };
    };



    Also, i want to use a channel-sounding feature hence please suggest the necessary flag to enable this. Following is proj.conf file

    CONFIG_CONSOLE=n
    CONFIG_STDOUT_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    CONFIG_GPIO=y
    CONFIG_SERIAL=y
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_BT=y
    CONFIG_BT_HCI_RAW=y
    CONFIG_BT_HCI_RAW_H4=y
    CONFIG_BT_HCI_RAW_H4_ENABLE=y
    CONFIG_BT_BUF_ACL_RX_SIZE=255
    CONFIG_BT_BUF_CMD_TX_SIZE=255
    CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
    CONFIG_BT_CTLR_ASSERT_HANDLER=y
    CONFIG_BT_MAX_CONN=16
    CONFIG_BT_CTLR_DTM_HCI=y
    CONFIG_BT_CTLR_ADV_EXT=y

    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
  • Unfortunately toolchain and workspace installation are not my area of expertise Disappointed . The last thing I can suggest here is to use VSCode extension because it helps to install SDK and toolchain in a safe and reliable way, also it is very convenient to use!




  • Hey, i reinstalled the entire setup just like the Nordic install guide and it started compiling.  Cs feature is also enabled. But i am getting one warning : BT_CTLR_DTM_HCI (defined at subsys/bluetooth/controller/Kconfig.dtm:14) was assigned the
    value 'y' but got the value 'n'. Check these unsatisfied dependencies: BT_CTLR_DTM_HCI_SUPPORT (=n).

    Do I need this flag to be enabled for working with an external host?

  • This warning is not critical for CS use-case. You don't need DTM in order to use normal Bluetooth Low Energy with Channel sounding, so you can just ignore it

  • Hi  

    Thanks. I was able to send a few CS commands successfully. but getting an invalid cmd params error for the following  command 
    HCI_OPCODE_CMD_LE_CS_SET_DEFAULT_SETTINGS,
    I am sending these params. I am not sure if i can debug the code for nrf controller. I found the declaration for sdc_hci_cmd_le_cs_set_default_settings() but not the definition. 


    conn_handle = le16toh(ev->conn_handle);

    role_enable = 0x01;

    cs_sync_antenna_selection = 0x01;

    max_tx_power = 0x7F;

  • Update: I  just updated the param  max_tx_power to 0x0 and it worked 

Reply Children
No Data
Related