Skip to content

Commit 029f9d6

Browse files
committed
Merge branch 'main' into variant/RAK3172-Module
2 parents df9bd73 + 31e562d commit 029f9d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: variants/STM32F4xx/F401R(B-C-D-E)T/variant_NUCLEO_F401RE.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ WEAK void SystemClock_Config(void)
115115
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE2);
116116

117117
/* Initializes the CPU, AHB and APB busses clocks */
118-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
119-
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
118+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
119+
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
120+
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
120121
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
121-
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
122+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
122123
RCC_OscInitStruct.PLL.PLLM = 8;
123-
RCC_OscInitStruct.PLL.PLLN = 336;
124+
RCC_OscInitStruct.PLL.PLLN = 168;
124125
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4;
125126
RCC_OscInitStruct.PLL.PLLQ = 7;
126127

0 commit comments

Comments
 (0)