From 72e2d393a6ceeb47dae8215b9ce0e132da1e65dd Mon Sep 17 00:00:00 2001 From: Yihui Xiong Date: Wed, 19 Nov 2014 13:51:12 +0800 Subject: [PATCH] [NUCLEO_F103RB] update SystemCoreClock after changing clock settings --- .../cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/system_stm32f10x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/system_stm32f10x.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/system_stm32f10x.c index 81e69fd88d..d5d40fd3ef 100644 --- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/system_stm32f10x.c +++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/system_stm32f10x.c @@ -230,6 +230,8 @@ void SystemInit (void) /* Configure the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers */ /* Configure the Flash Latency cycles and enable prefetch buffer */ SetSysClock(); + + SystemCoreClockUpdate(); } /**