To get the reason for the restart, I called the sd_power_reset_reason_get () function after the ble_stack_init () function in main, but there was a problem.The return value of this function is 0, but no matter how it is restarted, the value it gives is 0.