-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add support for Microchip SST26VF016B & SST26VF032B and make fastread working #173
Conversation
…needed for the fast byte instruction
Hi Loic, Thanks for this - I'll just test this over the next day or so and pull it into the development branch. W.R.T Fast Read, the Winbond chips call for 8 dummy clocks after the 24-bit address is clocked in (Re: Section 8.2.9 in the datasheet here). I don't know if the SST25 and SST26 series need that - I'll check that out as part of the testing 🙂 |
Hi mate, after checking the library code, it turns out I'd made a mistake when I wrote the Also, I had already included SST26 series support in the development branch before your pull request came through, so, I won't need to merge it here after all. However, thank you for taking the time to catch and fix the bug and add support for new chips! 🙂 |
Hello, The same fix as of commit 7e0825a is needed for SPIFram on SPIFramIO.cpp at line 164 : The dummy byte needed for fast read operation should be sent after the two-bytes address. |
Well, in fact the SPIFram::_read() template defined in SPIFram.h need to also be modified like SPIFlash::_read defined in SPIFlash.h Need to change _nextByte(WRITE, FASTREAD); and _nextByte(WRITE, READDATA); to _beginSPI(FASTREAD); and _beginSPI(READDATA); at lines 339 and 342. I made a new pull request that solve this new issue : #203 |
Use _beginSPI(). See Marzogh#173
Any pull request raised here MUST be submitted according to here MUST be submitted according to this template or it will be flagged with 'Not enough information'. No action will be taken till all the prerequisite information (according to the right template) is provided. If no information is provided for over a month after the 'Not enough information' label is applied, the issue will be closed.
Pull request details
What is the current behavior? (You can also link to an open issue here)
Fastread mode do not work (only tested with SST26VF016B & SST26VF032B chips)
What is the new behavior? (if this is a feature change)
Make fastread mode works (only tested with SST26VF016B & SST26VF032B chips)
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Nothing
Other information:
As I don't have any other chip, especially Winbond ones. Can you confirm that fastread mode is not actually working on your side ?
If it working with other chip than Microchip ones, I probably need to do some verifications to identify it.
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.