diff --git a/os/hal/ports/STM32/STM32H7xx/hal_lld.c b/os/hal/ports/STM32/STM32H7xx/hal_lld.c index d40f21f4d..364786ae4 100644 --- a/os/hal/ports/STM32/STM32H7xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32H7xx/hal_lld.c @@ -276,14 +276,22 @@ void stm32_clock_init(void) { #endif while ((RCC->CR & RCC_CR_HSERDY) == 0) ; /* Waits until HSE is stable. */ -#endif +#endif /* STM32_HSE_ENABLED == TRUE */ + + /* HSI48 activation.*/ +#if STM32_HSI48_ENABLED == TRUE + RCC->CR |= RCC_CR_HSI48ON; + while ((RCC->CR & RCC_CR_HSI48RDY) == 0) + ; /* Waits until HSI48 is stable. */ + +#endif /* STM32_HSI48_ENABLED == TRUE */ /* CSI activation.*/ #if STM32_CSI_ENABLED == TRUE RCC->CR |= RCC_CR_CSION; while ((RCC->CR & RCC_CR_CSIRDY) == 0) ; /* Waits until CSI is stable. */ -#endif /* STM32_HSE_ENABLED == TRUE */ +#endif /* STM32_CSI_ENABLED == TRUE */ /* LSI activation.*/ #if STM32_LSI_ENABLED == TRUE diff --git a/readme.txt b/readme.txt index 32c2268e5..4997496c9 100644 --- a/readme.txt +++ b/readme.txt @@ -100,6 +100,8 @@ MEMS Accelerometers. - NEW: Safer messages mechanism for sandboxes (to be backported to 20.3.1). - NEW: Added latency measurement test application. +- FIX: Fixed HSI48 not getting enabled on STM32H7 (bug #1114) + (backported to 20.3.2). - FIX: Fixed LPUART1 support for STM32H7xx (bug #1113) (backported to 20.3.2). - FIX: Fixed wrong sector count in EFL driver for L4+ dual bank configuration