Skip to content

Error on SPI freq lower than requested one #3849

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

Closed
LMESTM opened this issue Feb 28, 2017 · 2 comments
Closed

Error on SPI freq lower than requested one #3849

LMESTM opened this issue Feb 28, 2017 · 2 comments

Comments

@LMESTM
Copy link
Contributor

LMESTM commented Feb 28, 2017

As reported here: #3759 (comment)

With this patch 100KHz no longer works on the Odin (NUCLEO_F439ZI) and NUCLEO_F429ZI. When the SDBlockDevice is used I get:
"Couldn't set suitable SPI freq: request:100000, lowest:328125"

@c1728p9
Copy link
Contributor

c1728p9 commented Feb 28, 2017

100KHz isn't an unreasonable frequency. Can the clock divisor code be updated to divide this low? I think there is a prescaler register (divide up to 256 in powers of 2) and a divider register (divide up to 255).

Edit - the second prescaler register can only be used with I2S.

@LMESTM
Copy link
Contributor Author

LMESTM commented Apr 27, 2017

I propose to close this issue for now as corresponding PR was merged.
If issues are reported we'll open a new one.

@LMESTM LMESTM closed this as completed Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants