Open RJSDevel opened 1 month ago
Yes, that's the expected behavior.
esp_timer can automatically wake up the chip from light sleep only when automatic light sleep is used.
When you invoke light sleep yourself using esp_light_sleep_start, you are in control of wake up sources and need to call esp_sleep_enable_timer_wakeup
if you would like the chip to wake up after some time.
@RJSDevel please see our example: examples/system/light_sleep in esp-idf, if we directly call esp_light_sleep_start
, we must enable some wakeup sources such as gpio\timer\uart first, but if we use auto_light_sleep, we have called esp_sleep_enable_timer_wakeup
in vApplicationSleep, which will be called in idle task.
so this is not a bug
Answers checklist.
IDF version.
v5.2.1
Espressif SoC revision.
ESP32-H2 (revision v0.1)
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
KIT
Power Supply used.
USB
What is the expected behavior?
Periodic timer wakeup and run
What is the actual behavior?
Periodic timer doesn't wakeup
Steps to reproduce.
Debug Logs.
No response
More Information.
No response