Wake up from deep sleep issue after software reset
Posted: Fri Apr 11, 2025 4:31 am
I'm experiencing an issue where my ESP32-S3 fails to wake up from deep sleep under specific conditions.
After initial power-up, the ESP32 successfully enters and exits deep sleep via interrupt on an EXT1 pin or by the wakeup timer.
However, if I trigger a deep sleep cycle after previously performing a software reset, the device becomes unresponsive to both EXT1 wake up and timer-based wake-up.
The key difference in this failing scenario is the software reset performed before entering deep sleep.
After investigating this issue further, I discovered that it only occurs when the RTC clock source is configured to Internal 17.5MHz oscillator, divided by 256. When I changed the clock source to Internal 136kHz oscillator, the issue went away.
However, I would prefer to be able to use the Internal 17.5MHz oscillator, divided by 256 as the RTC clock source because of its higher timekeeping accuracy while in deep sleep mode.
Is this the expected behaviour or should I be able to wake from deep sleep after a software reset when using the Internal 17.5MHz oscillator, divided by 256 as the RTC clock source?
After initial power-up, the ESP32 successfully enters and exits deep sleep via interrupt on an EXT1 pin or by the wakeup timer.
However, if I trigger a deep sleep cycle after previously performing a software reset, the device becomes unresponsive to both EXT1 wake up and timer-based wake-up.
The key difference in this failing scenario is the software reset performed before entering deep sleep.
After investigating this issue further, I discovered that it only occurs when the RTC clock source is configured to Internal 17.5MHz oscillator, divided by 256. When I changed the clock source to Internal 136kHz oscillator, the issue went away.
However, I would prefer to be able to use the Internal 17.5MHz oscillator, divided by 256 as the RTC clock source because of its higher timekeeping accuracy while in deep sleep mode.
Is this the expected behaviour or should I be able to wake from deep sleep after a software reset when using the Internal 17.5MHz oscillator, divided by 256 as the RTC clock source?