Issue with 'sd_app_evt_wait() not Triggering Sleep mode

I am currently facing an issue with the 'sd_app_evt_wait()' function in my nrf51 application. Despite using this function to put the microcontroller into

sleep mode and wait for BLE events or interrupts, it appears that the sleep mode is not being entered as expected.

I would appreciate assistance in identifying the root cause of the issue and any suggestions for resolving it. My goal is to ensure that the 'sd_app_evt_wait()'

function correctly triggers sleep mode for efficient power management in my application.

Parents Reply
  • Thanks for the quick  reply,
     i have called a gpio toggle after power_manager() in for loop , but still the led is toggling continuously 
    please check the code.

    static void power_manage(void)
    {

    uint32_t err_code = sd_app_evt_wait();


    APP_ERROR_CHECK(err_code);
    }

    for (;;)
    {
    power_manage();
    // Process uart message
    nrf_gpio_pin_toggle(User_led);
    nrf_delay_ms(1000);
    }

Children
Related