Deep sleep mode with RTC and GPIO interrupt wakeup

Hello,

Our application requires the device to go into deep sleep and wake up every 24Hr or on the Accelerometer interrupt. We were able to obtain the sleep mode and wake up with the GPIO interrupt but could not find a way to wake up by RTC/Time based. We are using the SDK 1.8.0 We don't want to preserve any RAM contents and are okay to start from the reboot just need the lowest current consumption. Below is our implementation:

   LOG_INF( "Putting to sleep.");
   uint32_t err_code;
   err_code = nrfx_gpiote_init(0);
   nrfx_gpiote_in_config_t in_config = NRFX_GPIOTE_CONFIG_IN_SENSE_TOGGLE(false); 
   in_config.pull = NRF_GPIO_PIN_NOPULL; 
   err_code = nrfx_gpiote_in_init(10, &in_config, in_pin_handler); 
   nrfx_gpiote_in_event_enable(10, true);

   //TODO: Wakeup timebased too every day
   
   //turn off main power regulator
   struct pm_state_info pm_info;
   pm_info.state = PM_STATE_SOFT_OFF;
   pm_power_state_set(pm_info);

Can you help us regarding adding the wakeup on RTC interrupt event aswel?

Related