BLE stops advertising when bonding is enabled and rebooted. I think the problem is in stack initialization. How to deinitialize the BLE stack before rebooting.??
Initially when bond is disabled, BLE works fine. But when bonding is enabled through AT Commands and board is reset, I get error like "Error in aci_gap_set_discoverable(): 0x42". I am storing the Bond status in nvm. Is nvm making the issue? I suspect...