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
  • Dear Bordatech,

    Our regional sales manager answered to your CTO by email and I heard that your preference is NCS. In short, you are right. For the sample code you mentioned, it will be included as part of the next upmerge. We don't know when exactly it will be, but it will come within just a couple of weeks. 

    Dear Gary, wrt nRF5SDK, please open another case and then we will answer focusing on that.

    Best regards,

    Brian

    [Edited 16:33 13th of Jan.]

    Just confirmed it was upmerged this afternoon and built without any error now. Thank you for your patience.

  • Hi Brian,

    Thank you for your assistance however the periodic samples were not found under zephyr/samples/bluetooth in SDK versions 1.4.2 and 1.4.99 after a reinstall. So we pulled the latest commit from sdk-zephyr (b62d4210d87673f3872068c87f64803f52170fab) and the samples do exist where they should be right now. By using NCS 1.4.2 and 1.4.99 samples do build fine but we are still getting the original error above. We're curious if there is another way to get our SDK up to date with the state that you mentioned? What confused us is that the samples exist both at original zepyhr repo and at the nrf-sdk zephyr repo but we cannot access them when we pull the sdk via nRF Connect toolchain manager. Trying manually initializing and updating with west did not work, either.
Reply
  • Hi Brian,

    Thank you for your assistance however the periodic samples were not found under zephyr/samples/bluetooth in SDK versions 1.4.2 and 1.4.99 after a reinstall. So we pulled the latest commit from sdk-zephyr (b62d4210d87673f3872068c87f64803f52170fab) and the samples do exist where they should be right now. By using NCS 1.4.2 and 1.4.99 samples do build fine but we are still getting the original error above. We're curious if there is another way to get our SDK up to date with the state that you mentioned? What confused us is that the samples exist both at original zepyhr repo and at the nrf-sdk zephyr repo but we cannot access them when we pull the sdk via nRF Connect toolchain manager. Trying manually initializing and updating with west did not work, either.
Children
No Data
Related