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

SPI clock frequency #227

Open
MikeSparkEvo opened this issue Aug 27, 2021 · 1 comment
Open

SPI clock frequency #227

MikeSparkEvo opened this issue Aug 27, 2021 · 1 comment

Comments

@MikeSparkEvo
Copy link

MikeSparkEvo commented Aug 27, 2021


Hello, using Arduino Zero (SAMD21G18) and chip SST26VF064B the sketch flashdiagnostic does stuck at begin() call. After struggling a lot with electrical connection and making a good board layout to interface the chip with arduino, i found as solution to slow down the clock speed to 10MHz with setClock() macro.
This solved the problem, but my question is: why the library does keep the clock frequency too high for my mcu?


DO NOT DELETE OR EDIT anything below this

Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.


GitHub issue state GitHub issue title GitHub issue author GitHub issue label GitHub issue comments GitHub issue age GitHub issue last update

@alessandrofrancesconi
Copy link

alessandrofrancesconi commented Aug 31, 2021

I had the same problem and I've solved by calling setClock(8 * 100000) before begin().
I believe SPIMemory devs should add a #if defined(ARDUINO_SAMD_ZERO) before begin, then set the clock accordingly.

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

2 participants