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

Soft device somtimes don't want to start advertising

I have an application based on ble_app_hrs_freertos from SDK14. Sometimes the application will not start advertising. When this happens, it does not help to power-cycle device. Sometimes it helps to reset the device with nRFgo Studio, simply to let it discover the device (Selecting "nRF5x Programming" in Device Manager). After this, the device sometimes suddenly start advertising.

Advertising is started (or is supposed to) right after init of BLE and creation of the softdevice_task (nrf_sdh_freertos_init())

I get no errors when initing BLE, and no error when start advertising (ble_advertising_start()). There are no asserts from softdevice. When advertising is erroneously not started, no advertising events are sent (the advertising event handler on_adv_evt() is never called).

Of course I can't see this behaviour when running the example applications, i.e. ble_app_hrs_freertos.

Do you have any suggestions what can cause this?

Regards, Jan

Related