Hello Forum,
Is it possible to let the ULP-Coprocessor determine current sleep state (i.e. let the ULP check if system is in light_sleep or deep_sleep)?
Thank you,
Lars
ULP check if esp32 is currently sleeping
Re: ULP check if esp32 is currently sleeping
It's common to check RTC_CNTL_RDY_FOR_WAKEUP for wakeup readiness: https://docs.espressif.com/projects/esp ... p-the-chip
This should be effectively the same, for deep sleep at least.
This should be effectively the same, for deep sleep at least.
-
- Posts: 4
- Joined: Mon Jun 08, 2020 9:07 pm
Re: ULP check if esp32 is currently sleeping
Thanks!boarchuz wrote: ↑Sat Oct 31, 2020 8:12 amIt's common to check RTC_CNTL_RDY_FOR_WAKEUP for wakeup readiness: https://docs.espressif.com/projects/esp ... p-the-chip
This should be effectively the same, for deep sleep at least.
Works like a charm!
RTC_CNTL_RDY_FOR_WAKEUP is always 0 when esp is active and seems always 1 of esp is sleeping
Who is online
Users browsing this forum: Google [Bot] and 276 guests