have a project testing out light sleep mode with 30 second interval to wake up, however esp32-c6 dev board seems to be waking up regularly.. using a nrf power profiler to measure current.. see attached
when it actually is in sleep i use around 60uA.. however, it seems to be waking up at regular intervals.. turning on debug output doesn't reveal what is waking it up.. my code does start printing uart again at 30 seconds as it think it woke up, but something else is waking it up at a regular cadence..
does anyone have suggestions on how best to identify what it is that might be waking it up?
a) i tried esp_timer_dump() before I go to sleep to see if I could see any timers setup to wake up... didn't see anything obvious.
b) debug output did show this
Code: Select all
I (134284) PCM_MAIN_APP: STATE_MACHINE - MAS_Sleep
D (134304) pmu_sleep: blk_version is less than 3, lsD (134414) pmu_sleep: blk_version is less than 3, lsD (135114) pmu_sleep: blk_version is less than 3, lsD (136114) pmu_sleep: blk_version is less than 3, lsD (137114) pmu_sleep: blk_version is less than 3, lsD (137234) pmu_sleep: blk_version is less than
mainly just thinking about how best to debug unknown wakeups
cheers!
Paul