BLE: ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:305 k_sem_take failed with err -11

Hi

I'm flashing hci_lpuart on the nrf52 chip and peripheral_hr on the nrf9160 chip from the nrf9160dk. Everything goes well, but when I look in Link Monitor, I get this fail (and I can't connect with Bluetooth):

ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:305
k_sem_take failed with err -11

Looking at line 305, it looks like a thread can't be taken (anymore):

err = k_sem_take(&sync_sem, HCI_CMD_TIMEOUT);
BT_ASSERT_MSG(err == 0, "k_sem_take failed with err %d", err);

I also tried flashing lte sensor gateway, and it gives the same error.

This one: #CONFIG_BT_DEBUG_LOG=y is already in comment and there is no CONFIG_SETTINGS in prj.conf-file.

Thanks in advance!

Related