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

LFRC fails to start #416

Open
datdenkikniet opened this issue Dec 14, 2022 · 0 comments
Open

LFRC fails to start #416

datdenkikniet opened this issue Dec 14, 2022 · 0 comments

Comments

@datdenkikniet
Copy link

datdenkikniet commented Dec 14, 2022

In some, well-optimized (by the compiler) binaries, the LFRC startup code can cause erratum 3.34 to occur by restarting the LFRC oscillator between 66 and 138 us after stopping it.

It's tricky to create a reproducible example because it seems to rely on compiler optimizations whether it occurs or not, but the only code you need to run for it to occur is:

Clocks::new(peripherals.CLOCK).set_lfclk_src_rc().start_lfclk();

This code may hang forever on the events_lfclkstarted check in clocks.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