Skip to content

Commit 1ef1f86

Browse files
committed
chore(f7): use HSE bypass for Nucleo-F767ZI
instead of HSI. Signed-off-by: Frederic Pillon <[email protected]>
1 parent e3c3330 commit 1ef1f86

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/variant_NUCLEO_F767ZI.cpp

+3-20
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,6 @@ extern "C" {
171171

172172
/**
173173
* @brief System Clock Configuration
174-
* The system Clock is configured as follow :
175-
* System Clock source = PLL (HSI)
176-
* SYSCLK(Hz) = 216000000
177-
* HCLK(Hz) = 216000000
178-
* AHB Prescaler = 1
179-
* APB1 Prescaler = 4
180-
* APB2 Prescaler = 2
181-
* HSE Frequency(Hz) = 16000000
182-
* PLL_M = 8
183-
* PLL_N = 216
184-
* PLL_P = 2
185-
* PLL_Q = 9
186-
* PLLSAI_N = 192
187-
* PLLSAI_P = 2
188-
* VDD(V) = 3.3
189-
* Main regulator output voltage = Scale1 mode
190-
* Flash Latency(WS) = 7
191174
* @param None
192175
* @retval None
193176
*/
@@ -203,12 +186,12 @@ WEAK void SystemClock_Config(void)
203186
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
204187

205188
/* Initializes the CPU, AHB and APB busses clocks */
206-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
207-
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
189+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
190+
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
208191
RCC_OscInitStruct.HSICalibrationValue = 16;
209192
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
210193
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
211-
RCC_OscInitStruct.PLL.PLLM = 8;
194+
RCC_OscInitStruct.PLL.PLLM = 4;
212195
RCC_OscInitStruct.PLL.PLLN = 216;
213196
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
214197
RCC_OscInitStruct.PLL.PLLQ = 9;

0 commit comments

Comments
 (0)