← index #12579Issue #8148
Related · medium · value 2.492
QUERY · ISSUE

ESP32 timer wake up repeating

openby AndreoBotelhoopened 2023-10-03updated 2023-10-24
bugport-esp32

I'm using timer wakeup from light sleep with:

machine.lightsleep(30000) #sleep 30s

after 30 the esp32 wakes, disable peripherals and sleep indefinitely with:

machine.lightsleep()

but the 30s wake timer keeps repeating and didn't find any way to disable wake source

CANDIDATE · ISSUE

esp32 s3 deepsleep wake

closedby stephanelsmithopened 2022-01-07updated 2022-02-01
port-esp32

Migrating to S3, one curious issue is I'm not able to wake from deep sleep. Timer wake nor the ext0/ext1 modes. I have no problem with D4 or S2 versions. I'm using the UART console on S2/S3, so I do not get disconnected on deepsleep.

import machine
machine.deepsleep(1000)

Purusing modmachine.c where looks like the important bits are, I don't see anything jumping out at me in 'machine_sleep_helper' that would make a difference on a per sku basis.

I'm on micropython master branch. What esp-idf branch are S3 folks using? I'm on a October commit b86fe0c66ca17d5907ae26ecdffc9d4eb79cec07 which is working for me. Master esp-idf is giving my compilation errors. Maybe a more recent idf version?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied