nrf5340 deep sleep mode and wake up event by timer

Hi,

I'm trying to use sleep mode and wake up event by timer. OS Zephyr.

As I understood when I using PM_STATE_SOFT_OFF via pm_state_force, the only one way to use GPIO. 
It isn't obviously for me  how to use timer and sleep mode.

Could you please help me?

Parents
  • Hi,

    You are right that System OFF sleep requires an external wake-up source. For wake-up with an internal timer, you need to use System ON mode. System ON mode is entered automatically by the OS from the idle thread when there is no work to do. This is often achieved by calling k_msleep(<sleep duration in ms>); from your active thread.

    Best regards,

    Vidar

Reply
  • Hi,

    You are right that System OFF sleep requires an external wake-up source. For wake-up with an internal timer, you need to use System ON mode. System ON mode is entered automatically by the OS from the idle thread when there is no work to do. This is often achieved by calling k_msleep(<sleep duration in ms>); from your active thread.

    Best regards,

    Vidar

Children
No Data
Related