"ASSERTION FAIL [err == 0] k_sem_take failed with err -11" when HCI is used with LP-UART

Test setup -

1. nRF52840 DK - 1 as hci host, 1 as hci controller

2. HCI Host runs nrf/samples/bluetooth/peripheral_hr_coded with modified configuration (attached as conf_hci_host.zip)

3. HCI Controller runs nrf/samples/bluetooth/hci_lpuart with overlay and conf for nrf52840 dk (attached as conf_hci_controller.zip)

4. Connections are made tx-pin <-> rx-pin, req-pin <-> rdy-pin with each other.

Issues observed -

[2021-03-24 12:10:46.108] ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:333
[2021-03-24 12:10:46.115]   k_sem_take failed with err -11

This results in a continuous restart of the hci host firmware.

Question -

1. What should be done to make HCI over LP-UART work?

Parents Reply
  • Understood! Then I will do some testing tomorrow and see if I can reproduce. 

    Anirudh Agarkhed said:
    Just as an additional question, can HCI function over 2 Wire UART, and not mandate H4 which depends on 4 wire UART - CTS/RTS?

    It can. This is a restriction related to the hci_uart sample of Zephyr, and does not limit hci_lp_uart.

    By the way, have you tried using 1000000 baud rate?

    Best regards,
    Carl Richard

Children
Related