Connecting and disconnecting BLE with nRF52832

When disconnecting and connecting BLE, if the J-Link debugger is connected, BLE_EVT_DISCONNECTED in ble_evt_handler is executed, but if the debugger is not connected and the device is running, BLE_GAP_EVT_DISCONNECTED is not executed.

I'm checking by entering a command to turn on the LED after BLE_GAP_EVT_DISCONNECTED.

What should I check first?

Related