Hello - I've got an application which won't return from adv_stop(). If I hit stop on the debugger we are inside the hard fault handler. Any clues as to what to check?
In my advertising event handler I see:
- BLE_ADV_EVT_WHITELIST_REQUEST
- BLE_ADV_EVT_FAST
This is SDK 10.0.0, NRF51822.
int main(void)
{
uint32_t err_code;
timers_init();
// Initialize SoftDevice.
ble_stack_init();
gap_params_init();
device_manager_init(false); // required for advertising module
service_add();
advertising_module_init();
err_code = ble_advertising_start(BLE_ADV_MODE_FAST); // using new module
APP_ERROR_CHECK(err_code);
err_code = sd_ble_gap_adv_stop(); // goes to hard fault handler.