From 8e609e9459f8a9de92f7be8af4e5f46623ba50d0 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 22 Jul 2020 09:17:06 +0000 Subject: [PATCH] Fixed bug #1114. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13770 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32H7xx/hal_lld.c | 12 ++++++++++-- readme.txt | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) 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