STM32F407G-DISC1 Clock configuration - HSI/HSE values mismatch?
hamkoroke opened this issue · 2 comments
Describe the bug
Not totally sure but for the variant STM32F407G-DISC1 the clock configuration says that is using HSI but the value for:
RCC_OscInitStruct.PLL.PLLM = 8; // shouldn't be 16 for the previous setting of using HSI?is 8, but it seems that it might set to the value 16 instead when HSI is used instead of HSE?
There is a related issue by an user that had a problem with this (not using stm32duino but seems related): Issue
The documentation of the board, UM1472 - STM32F4DISCOVERY User Manual, Section 6.9 (OSC Clock Supply) also states:
MCO from ST-LINK. From MCO of the STM32F103. This frequency cannot be changed, it is fixed at 8 MHz and connected to PH0-OSC_IN of the STM32F407VG
So maybe if HSE is used, then that value would be correct (8) but for HSI should be set to 16?
The thing is that if there is an external oscillator is probably recommended to use HSE intead of HSI?
Thank you.
Board (please complete the following information):
- Name: STM32F407G-DISC1
Hi @hamkoroke
The Disco uses the HSE, the link you provide is not the correct one, this is the one for the generic.
Hereafter the clock config used by the Disco: