Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to allow overclocking #494

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

nicolas-robin
Copy link
Contributor

Similar to this PR in stm32f4xx-hal, I am porting a firmware on existing target that was designed to run faster than the official speed. This PR bypass the assert if allow_overclock is set in Config :

    let clocks = rcc.cfgr.freeze_with_config(Config{
        hse: Some(10_000_000),
        hse_bypass: true,
        pllmul: Some(0b1000),
        hpre: HPre::Div1,
        ppre1: PPre::Div4,
        ppre2: PPre::Div1,
        usbpre: UsbPre::Div1,
        adcpre: AdcPre::Div8,
        allow_overclock: true,
    }, &mut flash.acr);

@burrbull burrbull added this pull request to the merge queue Oct 5, 2024
Merged via the queue into stm32-rs:master with commit 4fb91ea Oct 5, 2024
11 checks passed
@nicolas-robin nicolas-robin deleted the overclocking branch October 5, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants