This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error (-11) while try to start advertising

Hi,

I have tried to follow the below tutorial (https://www.youtube.com/watch?v=hY_tDext6zA&t=933s). While I am trying to advertise the ble by following that webinar. I have got the below log error.

Kindly, help me to resolve that error.

Thanks & Regards,

Navin

Parents Reply
  • Hi Navin,

    The semaphore was initialized with the initial value set to '1' instead of '0', which caused k_sem_take() to return immediately before the BT stack was ready. 

    In remote.c, try:

    static K_SEM_DEFINE(bt_init_ok, 0, 1);

    Instead of:

    static K_SEM_DEFINE(bt_init_ok, 1, 1);

    Best regards,

    Vidar

Children
Related