light sleep, can't wake up
Posted: Mon Dec 08, 2025 4:51 pm
Hello!
Recently I noticed that my code which uses light sleep stopped to work: CPU goes to the light sleep but not going back.
I tried all wakeup sources but it don't wake up.
Even more: board becomes unresponsive so I can not reflash it with esptool! Have to press "reset" button.
Anybody experience this problem? It is ESP32-S3 with PSRAM. Arduino framework. All I do is: set up wakeup source (timer, 5 seconds) and call light_sleep_start(). The same setup with deep sleep works (when I replace light_sleep_start with deep_sleep_start).
This code was written I worked as expected for last few months until recent upgrade (new ESP-IDF).
PS: Happens ONLY when USB-CDC is used as a console. When it is UART0 it all works. Looks like USB-CDC dies after entering light sleep
Recently I noticed that my code which uses light sleep stopped to work: CPU goes to the light sleep but not going back.
I tried all wakeup sources but it don't wake up.
Even more: board becomes unresponsive so I can not reflash it with esptool! Have to press "reset" button.
Anybody experience this problem? It is ESP32-S3 with PSRAM. Arduino framework. All I do is: set up wakeup source (timer, 5 seconds) and call light_sleep_start(). The same setup with deep sleep works (when I replace light_sleep_start with deep_sleep_start).
This code was written I worked as expected for last few months until recent upgrade (new ESP-IDF).
PS: Happens ONLY when USB-CDC is used as a console. When it is UART0 it all works. Looks like USB-CDC dies after entering light sleep