Skip to content

STM32: Support board-specific clock configuration #5516

Description

@digitalentity

I have an STM32F405 board which has an 8 MHz XTAL. The TinyGo has a hardcoded setup for 12 MHz XTAL, which breaks all timings and peripherals (UART, USB). We need to support a few common options (8, 12 and 16 MHz XTAL seem to be relatively common for various STM32Fxxx boards).

We have a wild mix of clock/PLL configs across different STM32 runtime packages. We need to consolidate the M, N, P and Q parameters and have these selectable via a build tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions