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

RCC for F412, F413, F423, F446: Add missing configuration of PLLI2SCFGR.PLLI2SN #261

Merged
merged 2 commits into from
Feb 1, 2021
Merged

RCC for F412, F413, F423, F446: Add missing configuration of PLLI2SCFGR.PLLI2SN #261

merged 2 commits into from
Feb 1, 2021

Conversation

samcrow
Copy link
Contributor

@samcrow samcrow commented Feb 1, 2021

While testing I2S on an STM32F412, I found that the clock setup code was not correctly configuring the I2S PLL. The clock setup code found a good configuration, but did not write it correctly to the PLL configuration register. The PLLI2SCFGR.PLLI2SN field was left at its default value.

This pull request changes one function to write PLLI2SCFGR.PLLI2SN when applying a PLL configuration.

The updated code is working well for I2S on my STM32F412. I don't have an F413, F423, or F446 to test with, but this seems like a simple fix that is unlikely to break other code.

Copy link
Member

@therealprof therealprof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks a lot!

bors r+

@bors bors bot merged commit 1f0385f into stm32-rs:master Feb 1, 2021
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