2020-11-30 01:24 PM
2020-11-30 02:50 PM
It is a placeholder. The part doesn't start at 120 MHz.
Once you actually call code to configure the clock sources and PLL, it back computes the RCC/PLL settings and HSI, MSI and HSE, and writes a value to the variable.
2020-11-30 02:48 PM
When the chip starts, it runs from the 4MHz clock.
The clock is changed in SystemClock_Config which is called from main. The SystemCoreClock variable is updated within the SystemClock_Config function.
2020-11-30 02:50 PM
It is a placeholder. The part doesn't start at 120 MHz.
Once you actually call code to configure the clock sources and PLL, it back computes the RCC/PLL settings and HSI, MSI and HSE, and writes a value to the variable.