SystemCoreClockUpdate() is only used within MB1063.
 
Symbols
loading...
Files
loading...

SystemCoreClockUpdate() function

Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock (HCLK), it can be used by the user application to setup the SysTick timer or configure other parameters. - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) or HSI_VALUE(*) multiplied/divided by the PLL factors. (*) HSI_VALUE is a constant defined in stm32f4xx_hal_conf.h file (default value 16 MHz) but the real value may vary depending on the variations in voltage and temperature. (**) HSE_VALUE is a constant defined in stm32f4xx_hal_conf.h file (its value depends on the application requirements), user has to ensure that HSE_VALUE is same as the real frequency of the crystal used. Otherwise, this function may have wrong result. - The result of this function could be not correct when using fractional value for HSE crystal.

Syntax

void SystemCoreClockUpdate(void);

Return value

None

Notes

Each time the core clock (HCLK) changes, this function must be called to update SystemCoreClock variable value. Otherwise, any configuration based on this variable will be incorrect. - The system frequency computed by this function is not the real frequency in the chip. It is calculated based on the predefined constant and the selected clock source:

References

LocationText
system_stm32f4xx.c:212
void SystemCoreClockUpdate(void)

Data Use

Data read by SystemCoreClockUpdate()
Data written by SystemCoreClockUpdate()
RCC_TypeDef::PLLCFGR
RCC_TypeDef::CFGR
SystemCoreClockUpdate()::tmp
SystemCoreClockUpdate()::pllvco
SystemCoreClockUpdate()::pllp
SystemCoreClockUpdate()::pllsource
SystemCoreClockUpdate()::pllm
all items filtered out
SystemCoreClockUpdate()
SystemCoreClockUpdate()::tmp
SystemCoreClockUpdate()::pllvco
SystemCoreClockUpdate()::pllp
SystemCoreClockUpdate()::pllsource
SystemCoreClockUpdate()::pllm
all items filtered out
Type of SystemCoreClockUpdate()
SystemCoreClockUpdate()
uint32_t
all items filtered out