Skip to content

STM32F401RCTx SPI and I2C clock running at double frequency, when using external XTAL. #2662

Closed Answered by fpistm
wltue asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wltue
No issue in the core.
It's simply that you used a 16MHz HSE and the default value is 8MHz

#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */

So you have to redefine it using hal_conf_extra.h or build_opt.h

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by fpistm
Comment options

You must be logged in to vote
4 replies
@fpistm
Comment options

@wltue
Comment options

@fpistm
Comment options

@wltue
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2661 on February 27, 2025 08:40.