Hi, I'm creating a project on nRF51822 chip and I have a problem with disconnection. In my program I want to disconnect with master after some time e.g. 30 seconds. I'm using on_ble_evt(ble_evt_t * p_ble_evt) function to catch connection event from BLE stack and I'm starting new timer. In function which handling timeout of this timer I'm using: err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION) and APP_ERROR_HANDLER(err_code) orders, but it generates an error and chip is resetting. From Master Control Panel I'm getting that info: Lost connection to device. Reason: BTLE_CONNECTION_TIMEOUT SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> SERVER: Received Link Loss When I delete APP_ERROR_HANDLER(err_code) function, everything is ok - there is diconnection without chip reset and the reason is correct: BTLE_REMOTE_USER_TERMINATED_CONNECTION. My questions are: what can cause this error and is there any way to eliminate it? P.S. I'm using SoftDevice 6.0.0 and SDK 5.1.0.