Skip to content

HSE Predivider #448

@agrif

Description

@agrif

I'm trying to use this crate with an STM32F103CBT6 board that uses a 16MHz HSE oscillator. In C-land, I use the HSE predivider to bump that down to 8MHz, and as far as I know, this is the only method available to have both a 72MHz SYSCLK as well as the required 48MHz USB clock.

In STM32CubeMX, the HSE predivider is here (and called "HSE Prediv"):

2022-10-03_20-00-22

It doesn't look like this crate supports setting this predivider at all. In get_clocks(), the value for SYSCLK is calculated using the HSE, and possibly the PLL multiplier, but not any divider.

Is this reading correct? And can support for the HSE predivider be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions