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

Release build does not flashing led #193

Open
chessnokov opened this issue Nov 26, 2022 · 0 comments
Open

Release build does not flashing led #193

chessnokov opened this issue Nov 26, 2022 · 0 comments

Comments

@chessnokov
Copy link

chessnokov commented Nov 26, 2022

Very strange things occur on release build:
when sysclk is greater that pclk1, for example:

let clocks = rcc.cfgr.sysclk(96.MHz()).pclk1(48.MHz()).freeze();

led does not flashing, but debug build is fine.

I tested this combination:

let clocks = rcc.cfgr.sysclk(16.MHz()).pclk1(16.MHz()).freeze();
let clocks = rcc.cfgr.sysclk(32.MHz()).pclk1(32.MHz()).freeze();
let clocks = rcc.cfgr.sysclk(48.MHz()).pclk1(48.MHz()).freeze();

It's work fine, at both debug and release builds.

But, What occurs when i follow CubeMX suggestion(frequency), I don't understand.

I little modify example from this crate - PA5 for NUCLEO- F767ZI by default not connected from factory - https://github.com/chessnokov/pfm/blob/master/bin/pfm.rs

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

No branches or pull requests

1 participant