From acbd6cd7c6e71a26512fe684f1d01edaa34deb70 Mon Sep 17 00:00:00 2001 From: ttimasdf Date: Thu, 25 Feb 2021 16:55:29 +0800 Subject: [PATCH] Fix HAL not initialized on F105x series --- .../ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s b/system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s index 85ddcd405e..8577ba664d 100644 --- a/system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s +++ b/system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s @@ -91,6 +91,8 @@ LoopFillZerobss: bcc FillZerobss /* Call the clock system intitialization function.*/ bl SystemInit +/* Call static constructors */ + bl __libc_init_array /* Call the application's entry point.*/ bl main bx lr