← index #12579Issue #7158
Duplicate · high · value 3.516
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 calling sleep function without arguments after calling a sleep function previously with expiry causes sleep to expire at previously set expiry

closedby VynDragonopened 2021-04-24updated 2023-10-31
port-esp32

Hello.

In code, if I do machine.anysleep(some_expiry), then later on call machine.anysleep(), the ESP32 wakes after the expiry set in the first call with machine.wake_reason() as 4 (TIMER_WAKE, which is undocumented btw).
It seems to be because the wakeup trigger is never disabled as only esp_sleep_enable_timer_wakeup is called and never esp_sleep_disable_timer_wakeup, that i could find.
see https://github.com/espressif/esp-idf/issues/1677

Was on version 1.15.

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