hi
I use nRF5_SDK_17.0.2_d674dde. delete bonds have some problem.
1. when poweron before into main loop, use delete bond is ok。 can run to PM_EVT_PEERS_DELETE_SUCCEEDED 。
erase_bonds =true;
advertising_start(erase_bonds);
for(::)
{}
2. but when BT connect PC, use button delete bonds is fail
1) when key press, call sd_ble_gap_disconnect ,desconnect BT
2)then wiat BLE_GAP_EVT_DISCONNECTED over
3) then call
erase_bonds =true;
advertising_start(erase_bonds);
this way do not run to PM_EVT_PEERS_DELETE_SUCCEEDED.
4) it is fail to __WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
I do not know why?