Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31e562d

Browse filesBrowse files
committed
fix(Nucleo_F401RE): use HSI intead of HSE bypass
HSE Bypass is available only on MB1136 C-02 (or higher). MB1136 C-01 configured as HSE not used so old clock config does not work for it. Using HSI allows to be compatible with all MB1136 C-0x version. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 97030d8 commit 31e562d
Copy full SHA for 31e562d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎variants/STM32F4xx/F401R(B-C-D-E)T/variant_NUCLEO_F401RE.cpp

Copy file name to clipboardExpand all lines: variants/STM32F4xx/F401R(B-C-D-E)T/variant_NUCLEO_F401RE.cpp
+5-4Lines changed: 5 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.