I am using nrf52811 in my PCB, and sdk version 16.00
I am encountering a challenge related to implementing deep sleep functionality, and as a beginner, I've been struggling to configure it correctly. Despite my best efforts, my device does not seem to enter sleep mode in its normal standalone operation. I've verified this by monitoring its current consumption, which remains nearly the same as in active mode.
CASE 1: STANDALONE
What happens is that the device disconnects from Bluetooth Low Energy (BLE), and I cannot reconnect it unless the device detects a low signal on GPIO pin 18.
CASE 1: DEBUGGING MODE
Additionally, when the device disconnects from BLE, I observe a fatal error in the debug terminal and receive an "ERROR 8 (0*8) GATT_CONN_TIMEOUT" message in the nrf_connect mobile app. The device remains in this state until it detects a low signal on GPIO pin 18.
I've been grappling with this issue for about 10 days now and haven't been able to pinpoint the root cause or find a solution. I've attached my code below for review, and I would appreciate it if someone could help me identify where I might be making a mistake.
