STM32H7 Deepsleep changes clock source from LSE to LSI #17100
Unanswered
FieldDataTech
asked this question in
STM32 / Pyboard
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a custom H7 board where I'm using both C and Micropython. I have a STM32CubeIDE C project that puts the H7 in Standby with an RTC wakeup timer. It runs fine on an accurate LSE xtal. The RCC->BDCR register shows it on the LSE when it goes into Standby and when it wakes back up. But when I try to do the same thing with MicroPython it goes to sleep okay, and power draw is as low as expected, but when it wakes back up RCC->BDCR says it has switched to the innaccurate LSI. It loses two seconds every minute, 48 minutes per day. I check the RCC->BDCR immediately before the DeepSleep() command, and it's still on LSE. I read it again as soon as it wakes up and it says LSI. Does anyone know how I can keep it on LSE in DeepSleep()?
Beta Was this translation helpful? Give feedback.
All reactions