Skip to content

Commit 2127051

Browse files
committed
Revert "chore(f7): use HSE bypass for Nucleo-F767ZI"
This reverts commit 1ef1f86. Fixes #2795. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 0e2a66b commit 2127051

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

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

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,23 @@ 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
174191
* @param None
175192
* @retval None
176193
*/
@@ -186,12 +203,12 @@ WEAK void SystemClock_Config(void)
186203
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
187204

188205
/* Initializes the CPU, AHB and APB busses clocks */
189-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
190-
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
206+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
207+
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
191208
RCC_OscInitStruct.HSICalibrationValue = 16;
192209
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
193210
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
194-
RCC_OscInitStruct.PLL.PLLM = 4;
211+
RCC_OscInitStruct.PLL.PLLM = 8;
195212
RCC_OscInitStruct.PLL.PLLN = 216;
196213
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
197214
RCC_OscInitStruct.PLL.PLLQ = 9;

0 commit comments

Comments
 (0)