This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

enter into low power mode

Hi All,

i am using nrf52840 in nrf_Connect_sdk

is there any way where i can enter low power mode without sleep functions

Regards

Tushar

  • There is a tutorial  for making the chip go to system_off sleep and wakeup configuration. Even though the tutorial is made for nRF53, the configuration is still valid for nRF52840 aswell.

    The most important configuration is for you to enable the power manager and the PM will automatically take control of the sleep states of your chip.

    CONFIG_PM=y
    CONFIG_PM_DEVICE=y

    If you want to manually control when and how long your chip should go to sleep, then look at the example in nrf\samples\nfc\system_off\src\main.c::system_off and you can get some idea on how to make this work.

  • Hi,

    i went through the tutorial i have a doubt

    This api - pm_power_state_force((struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});  goes to force sleep

    how do i wake up 

    there is no wakeup configuration in code.

    Regards

    Tushar

  • Sorry for the late response, I was away due to covid.

    There is an system off example in the NCS SDK samples  You can find it in 
    ncs\v1.8.0\zephyr\samples\boards\nrf\system_off\ example on how to configure a gpio sense mechanism to wakeup the system from this sleep mode.

Related