This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_app_evt_wait not wake from sleep mode

Hi,

   We are using nrf51822 QFAAH00 with SDK 110 v10.0.0 with softdevice 8.0.0 in our project, In Application we are using gpio,timer,uart interrupt handler, In main function added sd_app_evt_wait function in while to wake up on event or interrupt, after sometime Application stuck in sleep mode and executing only the gpio,ble_event_handler,timer interrupt handler and bluetooth connection with central working fine. is it sd_app_evt_wait function failing to wake up from sleep mode?

Thanks,

nagaraj

 

Parents
  • >>  after sometime Application stuck in sleep mode and executing only the gpio,ble_event_handler,timer interrupt handler and bluetooth connection with central working fine. is it sd_app_evt_wait function failing to wake up from sleep mode

    I am not sure what this means? Do you mean that after calling sd_app_evt_wait() in a while loop, if still gpio interrupt handler is working, then the chip is waking up from sleep and going back to sleep again.

  • hi...susheel

    kindly help me ... i want to put my device is sleep mode 

    i have called the sd_app_evt_wait() in main loop but it doesn't work

    /**@brief Application main function.
     */
    int main(void)
    
    {
        bool erase_bonds;
    
        // Initialize.
        uart_init();
        log_init();
        timers_init();
        buttons_leds_init(&erase_bonds);
        power_management_init();
        ble_stack_init();
        gap_params_init();
        gatt_init();
        services_init();
        advertising_init();
        conn_params_init();
        
    
    
        // Start execution.
        printf("\r\nUART started.\r\n");
        NRF_LOG_INFO("Debug logging for UART over RTT started.");
        advertising_start();
        
        twi_init();
        LM75B_set_mode();
        
          while (true)
        {
            nrf_delay_ms(5000);
    
            do
            {
                __WFE();
            }while (m_xfer_done == false);
          
         
           
            // read_sensor_data();
           //  power_manage();
             threshold_value();
          sd_app_evt_wait();
            NRF_LOG_FLUSH();
        }
        }

  • saral please open a new case as the symptoms you see are not the same as this original thread.

Reply Children
No Data
Related