Skip to content

stm32G473 RCC setup for HSE #1924

Closed Answered by fpistm
mackelec asked this question in Variants
Jan 14, 2023 · 5 comments · 3 replies
Discussion options

You must be logged in to vote

SystemCoreClock is updated by HAL when it configures the clock.

As stated here:

/* The SystemCoreClock variable is updated in three ways:
1) by calling CMSIS function SystemCoreClockUpdate()
2) by calling HAL API function HAL_RCC_GetSysClockFreq()
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
Note: If you use this function to configure the system clock; then there
is no need to call the 2 first functions listed above, since SystemCoreClock
variable is updated automatically.
*/
extern

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mackelec
Comment options

@mackelec
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mackelec
Comment options

Answer selected by mackelec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants