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
  • Hi ,
    I updated the nrf sdk version to latest v3.0.0-rc1. Also updated the zypher-sdk to latest . I am getting the error for  __device_dts_ord_DT_CHOSEN_zephyr_bt_c2h_uart_ORD' undeclared here (not in a function)

    Below is my overlay file 

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

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

  • Hi  ,
    I tried to build an hci_uart application with the command west build -p -b nrf54l15dk/nrf54l15/cpuapp -S nordic-flpr --no-sysbuild. and the above error is solved but am not able to perform rx-tx now. There is no command going from host to controller.. could you please help with this cc  

  • Hi

    For me the following approach works:

    1. checkout NCS v3.0.0-rc1

    2. do `west update` to update all the modules to correct revisions

    3. add `CONFIG_BT_CTLR_CHANNEL_SOUNDING=y` to zephyr/samples/bluetooth/hci_uart/prj.conf

    4. run `west build -bnrf54l15dk/nrf54l15/cpuapp` in zephyr/samples/bluetooth/hci_uart folder

    5. run `west flash`

    I believe it should work for you as well Slight smile



  • I am getting lot of compilation issues now. I just follow what u suggested. Also, searched on the web if any related article can help but nothing relevant to it.

    Following is my branch information 

    Zephyr Commit 

    commit e48bca44dd596dc66d71378e97bf5ceff2c483d0 (HEAD -> manifest-rev, tag: v4.0.99-ncs1-rc1)
    Author: Michał Stasiak <[email protected]>
    Date: Tue Apr 1 09:53:30 2025 +0200

    [nrf fromlist] drivers: audio: dmic_nrfx: add support for audio clocks on nRF54

    Added support for audio clock for nRF54L20 and AudioPLL
    for nRF54H20 in DMIC PDM driver.

    Upstream PR #: 87105

    Signed-off-by: Michał Stasiak <[email protected]>


    Nrf-sdk Commit 

    commit 3f93b1b897e4fe98a9444cfda56c7fceca35274f (HEAD -> v3.0.0-rc1, tag: v3.0.0-rc1)
    Author: Bjarki Arge Andreasen <[email protected]>
    Date: Fri Apr 4 13:36:11 2025 +0200

    MANIFEST: Update revisions for v3.0.0-rc1

    Update west.yml revisions for v3.0.0-rc1

    Signed-off-by: Bjarki Arge Andreasen <[email protected]>



    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart
    -- CMake version: 3.22.1
    -- Found Python3: /home/abhinav/.espressif/python_env/idf5.4_py3.11_env/bin/python (found suitable version "3.11.4", minimum required is "3.10") found components: Interpr
    r
    -- Cache files will be written to: /home/abhinav/.cache/zephyr
    -- Zephyr version: 4.0.99 (/home/abhinav/nrf_latest/zephyr)
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.17.0 (/home/abhinav/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/abhinav/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/abhinav/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/abhinav/nrf_latest/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
    -- Generated zephyr.dts: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/build/hci_uart/zephyr/zephyr.dts
    -- Generated pickled edt: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/build/hci_uart/zephyr/edt.pickle
    -- Generated zephyr.dts: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/build/hci_uart/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/build/hci_uart/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /home/abhinav/nrf_latest/zephyr/samples/bluetooth/hci_uart/build/hci_uart/zephyr/dts.cmake

    warning: BT_CTLR_DTM_HCI (defined at subsys/bluetooth/controller/Kconfig.dtm:14) was assigned the

  • Can you double-check please if you have any local changes in any of the repositories in the workspace except for `CONFIG_BT_CTLR_CHANNEL_SOUNDING=y` in zephyr/samples/bluetooth/hci_uart/prj.conf?

    Can you also provide output of `west list` command please? it should print revisions of all the repositories in your west workspace

Reply Children
Related