Page 1 of 1

STM32LowPower - max limit on milliseconds for deepSleep()

Posted: Wed Oct 18, 2023 3:47 pm
by brixton
Hello,

Is there max limit on deepSleep(uint32_t ms)? Other than the max of a uint32_t, which would be 2^32 - 1 = 4294967295.

I'm coming from a teensy with Snooze library, and that uses a upper limit per sleep cycle of 60 s I believe, hence the question.

This page only mentions the lower limit for some MCU's.
https://github.com/stm32duino/STM32LowPower

Many thanks!

Re: STM32LowPower - max limit on milliseconds for deepSleep()

Posted: Wed Oct 18, 2023 4:34 pm
by fpiSTM
In fact using ms here program the rtc for simplicity. You can program manually an alarm of the rtc to wake-up when you want.