Skip to content

Commit d47d87c

Browse files
adustm0xc0170
authored andcommitted
[NUCLEO_F746ZG] 8MHz, not 25
1 parent ddea20a commit d47d87c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
* (when HSE is used as system clock source, directly or through the PLL).
103103
*/
104104
#if !defined (HSE_VALUE)
105-
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
105+
#define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
106106
#endif /* HSE_VALUE */
107107

108108
#if !defined (HSE_STARTUP_TIMEOUT)

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ HAL_StatusTypeDef HAL_Init(void);
133133
*/
134134

135135
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
136-
#define USE_PLL_HSE_EXTC (0) /* Use external clock --> NOT USED ON THIS BOARD */
136+
#define USE_PLL_HSE_EXTC (1) /* Use external clock --> NOT USED ON THIS BOARD */
137137
#define USE_PLL_HSE_XTAL (1) /* Use external xtal */
138138

139139
/**
@@ -607,10 +607,10 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
607607
{
608608
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS; /* External clock on OSC_IN */
609609
}
610-
// Warning: this configuration is for a 25 MHz xtal clock only
610+
// Warning: this configuration is for a 8 MHz xtal clock only
611611
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
612612
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
613-
RCC_OscInitStruct.PLL.PLLM = 25; // VCO input clock = 1 MHz (25 MHz / 25)
613+
RCC_OscInitStruct.PLL.PLLM = 8; // VCO input clock = 1 MHz (8 MHz / 8)
614614
RCC_OscInitStruct.PLL.PLLN = 432; // VCO output clock = 432 MHz (1 MHz * 432)
615615
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; // PLLCLK = 216 MHz (432 MHz / 2)
616616
RCC_OscInitStruct.PLL.PLLQ = 9; // USB clock = 48 MHz (432 MHz / 9) --> OK for USB

0 commit comments

Comments
 (0)