This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Extended advertising fails with zephyr Host - Controller configuration

Hi, I'm using nRF9160 as host and nRF52833 as a controller with NCS 1.5.0 SDK. On nRF52833 LPUART sample runs, I have added needed configurations for extended advertising there. On nRF9160 periodic_adv sample runs however system resets after waiting semaphore for HCI_CMD_TIMEOUT seconds in bt_hci_cmd_send_sync. (bt_le_ext_adv_start -> bt_le_ext_adv_set_data -> le_adv_update -> bt_hci_cmd_send_sync). Here is what get in the terminal:

 *** Booting Zephyr OS build v2.4.99-ncs1  ***
 
 Starting Periodic Advertising Demo
 
 
 [00:00:02.259,429] <wrn> bt_hci_core: opcode 0x0000 pool id 2 pool 0x200103fc != &hci_cmd_pool 0x200103d4
 [00:00:02.289,672] <inf> bt_hci_core: Identity: F7:90:8F:C8:9C:F6 (random)
 [00:00:02.289,672] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1
 [00:00:02.289,672] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff
 ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:333
 
   k_sem_take failed with err -11
 
 [00:00:12.293,212] <err> os: r0/a1:  0x00000003  r1/a2:  0x20014118  r2/a3:  0x200104e8
 [00:00:12.293,212] <err> os: r3/a4:  0x00000002 r12/ip:  0x0a31312d r14/lr:  0x0000fc39
 [00:00:12.293,243] <err> os:  xpsr:  0x41000000
 [00:00:12.293,243] <err> os: Faulting instruction address (r15/pc): 0x0000fc44
 [00:00:12.293,243] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
 [00:00:12.293,243] <err> os: Current thread: 0x20010428 (unknown)
 [00:00:12.576,446] <err> fatal_error: Resetting system

With the same Host - Controller configuration I tried to run ibeacon sample which uses legacy advertising and it ran without errors. Also periodic_sync example runs as expected too, only problem is in extended advertising. What steps should be followed for this problem?

Related