You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments