Skip to content

SystemCoreClock is not set correctly #15

@AlanFord

Description

@AlanFord

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions