Nodate icon indicating copy to clipboard operation
Nodate copied to clipboard

SystemCoreClock is not set correctly

Open AlanFord opened this issue 3 years ago • 0 comments

system_stm32f1xx.c initially sets SystemCoreClock to a value of 16000000, while on startup the STM32F1 series defaults to using the 8 MHz HSI clock. This leads to incorrect operation of peripherals whose configuration depends on SystemCoreClock. Calling SystemCoreClockUpdate() during program initialization corrects the value stored in SystemCoreClock.

AlanFord avatar Jun 11 '21 17:06 AlanFord