Failed to create advertiser set (-11) nrf52833

Hi All!

I am working on nrf52833DK using Zephyr RTOS, NCS version 2.0.2. I am using  peripheral_Uart & Central_Uart to add Coded_Phy and conncurrent Connection features from the peripheral_hr_coded & Central_hr_coded right.

In the First step when I copied the functions according to this post

 Failed to create advertiser set (-11) Advertising failed to create (err -11) Issues modiying UART example to work on coded phy 

Code compiled well! but I get the same errors as mentioned in the post tried to solve it via copying the image file into the peripheral_Uart project from peripheral_hr_coded but still same error. Maybe the issue is due to nrf5340 and am using nrf52833. can you please help me in this regard ?

Thanks & Regards,

Muhammad Usman

Parents
  • Hi,

    I had the same problem when I was merging the peripheral_uart and the peripheral_hr_coded as I also want to do the coded_phy with NUS. Based from experience, you should place your bt_ready() function after the checking of the CONFIG_SETTINGS() (this is in the peripheral_uart main code). So it would be:

    if (IS_ENABLED(CONFIG_SETTINGS)) {
         settings_load();
    }
    bt_ready();

    I encountered the same error as you have: Failed to create advertiser set <-11> when I placed the bt_ready() before the CONFIG_SETTINGS condition. 

    Hope it helps!

    Thanks,

    oli

Reply
  • Hi,

    I had the same problem when I was merging the peripheral_uart and the peripheral_hr_coded as I also want to do the coded_phy with NUS. Based from experience, you should place your bt_ready() function after the checking of the CONFIG_SETTINGS() (this is in the peripheral_uart main code). So it would be:

    if (IS_ENABLED(CONFIG_SETTINGS)) {
         settings_load();
    }
    bt_ready();

    I encountered the same error as you have: Failed to create advertiser set <-11> when I placed the bt_ready() before the CONFIG_SETTINGS condition. 

    Hope it helps!

    Thanks,

    oli

Children
Related