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

Periodic Advertisement sample on nrf9160dk_52840 not working

Hi, I am trying to run the periodic_adv sample on nrf9160dk_52840 which was added to the samples directory of the zepyhr repo 15 days ago. I am using nRF Connect SDK v1.4.99-dev1.

In the changelog of this version it is stated that:

Added experimental support for Periodic Advertising and Periodic Advertising Synchronization Establishment.

Yet the periodic_adv sample is not included in the zephyr directory of the nRF Connect SDK. I tried to run it by copying the sample from the zephyr repo to the nRF Connect SDK zephyr directory but when I run the program on nrf9160dk_52840, I get this error message:

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

This error occurs just before set_le_adv_enable_ext function returns.

Thanks in advance.

Parents Reply
  • Thank you for your answer, Simon. I encountered both of the problems you have given. I tríed to solve the first one by changing link layer selection from SofDevice to Software-based BLE in the Configure SDK Project wíndow. After thís change, it failed again at the second part but wíth status = 12 (BT_HCI_ERR_CMD_DISALLOWED). 

    I hope this helps find the solution.

    Thank you.

Children
Related