diff --git a/os/hal/ports/STM32/STM32G0xx/hal_lld.c b/os/hal/ports/STM32/STM32G0xx/hal_lld.c index a39b2adb2..09ea8e6cc 100644 --- a/os/hal/ports/STM32/STM32G0xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32G0xx/hal_lld.c @@ -151,7 +151,7 @@ void stm32_clock_init(void) { #if STM32_HSI16_ENABLED /* HSI activation.*/ - RCC->CR |= RCC_CR_HSION; + RCC->CR |= RCC_CR_HSION | STM32_HSIDIV; while ((RCC->CR & RCC_CR_HSIRDY) == 0) ; /* Wait until HSI16 is stable. */ #endif diff --git a/readme.txt b/readme.txt index 378f23ad4..1635bcdda 100644 --- a/readme.txt +++ b/readme.txt @@ -117,6 +117,8 @@ MEMS Accelerometers. - NEW: Safer messages mechanism for sandboxes (to be backported to 20.3.1). - NEW: Added latency measurement test application. +- FIX: Ignored HSIDIV setting on STM32G0xx (bug #1121) + (backported to 20.3.3). - FIX: Fix incorrect variable name in recursive mutex handling (bug #1119). - FIX: Fixed several problems in STM32 ADCv4 (bug #1116) (backported to 20.3.2).