Commit a148ed2
committed
stm32/system_stm32: Fix LSE initialization for STM32H7/F4/F7.
The LSE oscillator was never being enabled for STM32H7, F4, and F7
families. The code would set the RTC clock source to LSE via
HAL_RCCEx_PeriphCLKConfig() but never called HAL_RCC_OscInit() with
RCC_OSCILLATORTYPE_LSE to actually enable the oscillator.
This fix adds LSE oscillator initialization following the pattern
already used successfully on STM32L4 boards. When MICROPY_HW_RTC_USE_LSE
is enabled, the LSE is now properly initialized before being selected as
the RTC clock source.
Verified on STM32H747I-DISCO: LSEON=1, LSERDY=1, RTCSEL=LSE.
Signed-off-by: Andrew Leech <[email protected]>1 parent 9999553 commit a148ed2
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| |||
0 commit comments