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

Error in advertising_start function in ble_app_template example

Hello,

I am currently using the nrf52840, SDK 17.0.2 and segger embedded studio version V5.34. I have been working extensively with the ble_app_template in the peripheral example and added code to include custom services and characteristics.

Till yesterday my code was working fine, however today, I keep getting an error from the advertising_start function (error code 8). I am attaching the call stack and the debug terminal screenshot.

Any help on how this error can be resolved will be great. The third image shows which line creates the error in main...

Parents Reply
  • Hi Jorgen,

    Yes I am calling ble_advertising_init() before the ble_advertising_start(). Below is a screenshot of the order I call the various Bluetooth functions. This is in the main function.

    So advertising_init() calls ble_advertising_init() and then ble_advertising_start() is called in advertising_start().

    Could it be something to do with the 'erase bonds'? I was experimenting with some of the buttons on my device, so I am suspecting if that may have caused this issue...

    Thanks

Children
No Data
Related