PaulStoffregen
Well-known member
Are you sure those are genuine W25Q128 chips? Did you get them from a reputable distributor, or a Ebay or Aliexpress merchant?
Mine came from Digikey.
Mine came from Digikey.
I'll buy a new one at ebay
I've merged this code to the audio library. Thanks for putting this together.
https://github.com/PaulStoffregen/Audio/commit/f13e51ee97b3f041f9a5608e754482787186af56
The web design tool has also been updated.
http://www.pjrc.com/teensy/gui/?info=AudioPlaySerialflashRaw
I did make one tiny change, from "AudioPlaySerialRaw" to "AudioPlaySerialflashRaw". Yeah, that's long... but someday there may be some sort of serial streaming, so my hope is a longer name will avoid confusion when/if that ever happens.
One piece that's still missing is a good example. Any chance someone would like to contribute one, with public domain or well documented creative commons sounds? Ideally, an example should show the serial flash's ability to play many concurrent streams.
Most notably, I have mixers of different sizes so that you don't need to stack multiple mixers together, and I have added the ability to change the CS pin for SPI flash. If you are interested in those changes for inclusion into your libraries, please let me know and I can do a pull request on your github.
Sure, submit a pull request on github.
However, really wide mixers are discouraged. Due to the way the audio connections and updating of data works, wide mixers hog memory.
How wide is too wide?
Let's not put more than 8 wide into the library.
Connecting them in tandem is pretty simple and conserves memory, with almost no performance penalty.
I'll do a pull request tonight for the CS pin stuff on the serial flash. Not sure if it would help others or not, but it allows you to use multiple SPI flash chips on the same bus. (in my project I have a 16MB chip on the audio board, and a 64MB chip on my actual project board; I would never need to use both, but it lets me select one or the other without needing to unsolder the one from the audio board). Feel free to accept or reject as you see fit.


Woops, I typed that wrong. It is a W25Q128FV
Good One Frank . . . "(from my memory)" . . .Interestingly (from my memory) my full erase was much faster than yours.
Good One Frank . . . "(from my memory)" . . .
dsparks - per my post and Frank's - please post the code you are using if it isn't a 'canned' sample you can link with no edits.
Frank - if you know what hardware (PJRC AudioBrd?) is in use and could drop notes or a link to the right post to make it work as you did with that chip - I'll build one up.
//uncomment these if using Teensy audio shield
SPI.setSCK(14); // Audio shield has SCK on pin 14
SPI.setMOSI(7); // Audio shield has MOSI on pin 7




I was able to get the hardware scan to work properly. After removing the SD card.
However when trying to write files to the flash chip from SD card, I get failures still.