NRF52 deep sleep, timer trigger

I want to create a ble application which shall work as a beacon, it will advertise its presence for some time, and then it must enter deep sleep. The device shall remain in the deep sleep for some time and after 5 seconds awake from sleep and perfom ble operations.

We are unable to find any reference for deep sleep with timer awake. We were able to find gpio awake and nfc awake but not timer awake.

Please let us know about any reference for the same.

  • I see that you are using the SAADC driver in your project.

    This will draw high current if it is enabled all the time.

    There is a low power option to only start the SAADC peripheral right before sampling, that you can enable in your sdk_config.h file:

    // <q> SAADC_CONFIG_LP_MODE  - Enabling low power mode
     
    
    #ifndef SAADC_CONFIG_LP_MODE
    #define SAADC_CONFIG_LP_MODE 1
    #endif

    For this to work properly, you need to set the SAMPLES_IN_BUFFER define to the number of enabled SAADC channels (seems to be 1 in the project your attached).

Related