Skip to content

Commit 91aab46

Browse files
committed
Update SystemClock_Config
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 6cb3a3a commit 91aab46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

variants/NUCLEO_F030R8/variant.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ void SystemClock_Config(void)
153153
RCC_OscInitTypeDef RCC_OscInitStruct;
154154

155155
/* No HSE Oscillator on Nucleo, Activate PLL with HSI/2 as source */
156-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_NONE;
156+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
157+
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
158+
RCC_OscInitStruct.HSICalibrationValue = 15;
157159
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
158160
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
159161
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;

0 commit comments

Comments
 (0)