Before answering, it's important to understand the external memory doesn't function as general purpose memory. It doesn't work that way. This isn't the same as getting more memory by changing from Teensy 3.2 to Teensy 3.6.
Both of these chips can work, but for very different purposes.
Currently, the only object which supports serial flash is this:
In the future I'm planning to add more pre-recorded playing options for the flash chip. The RAM might get a live sample-then-play object someday. But in general, if you want more memory for anything else, Teensy 3.6 is the most you can get.
Hey Paul, thanks for the detailed answer. In fact I've ordered both a serial ram and a flash solution and will see which is better.
I'm altering some modules like AudioPlaySdRaw to be able to access different points of the file randomly (which microsd complains a little bit because of the nonsequential speed)
Probably Flash will be easier for me because of the similarity of working with SD. card
But I would love to be able to write down a RAW audio directly to AUDIO_MEMORY_23LC1024, and play it back from any point, shuffle pieces, maybe reverse speed and so on.
In other hand I'll be playing with my Teensy 3.5 and audio next week too.
Chip is working great, it has actually 16Mb of space!
I've ported all the code I was using from SD_t3.h to SerialFlash, working great, thanks for the similar functions.
I've experiencing erratic behavior from time to time, sometimes SerialFlash takes almost one minute to start working properly,
I've been reading SerialFlash readme and I suppose it has to do with file rewriting when erasing.
Any ideas on that?
Thanks Frank, one question: is it mandatory to overwrite 0xFF in an entire erased file when using Flash to be able to write again? I'm a newbie in that subject.
If it is mandatory maybe I should begin using some Serial Ram chips to get instant results, as it was a digital guitar effect.
FLASH is such that 1's can be written to 0's to change their value. So starting at 0xFF means they can take on any value. Formatting put's all bytes to 0xFF. Once a ZERO is 'written' only a format can undo it.
Thank you defragster! hope this thread help others too.
About SRAM chip, I've research a little bit and it seems the one recommended in Teensy Audio Adaptor Board is the best you can get (23LC1024).
At least I can't find any with more than 1Mbit, Sop-8.
Do you think there are chips with more memory out there?
Hey Frank thanks, it is an amazing project and I'll be ordering one to test soon.
Just to update things here, I've overcome the overwrite problem by creating a new file on each record, and start erasing the previous file after recording the new one.
This way Teensy will only be busy overwriting when playing back files, it is working great with two simultaneous tracks now.
Maybe I can even use the SD card this way.
For some reason as soon as I plug the synthesizer in Line In, even without sound the built in LED starts to fade a little bit, as seen in this video:
Have anybody else noticed it? is this a matter of concern? (I'm aiming at using in a live performance in near future)
Sorry, answering my last question, pin 13 is part of the communication, so it is natural the LED is blinking.
Other question, when not turned on (plugged on usb), the line out from teensy audio produces a noise, is there any way to avoid it?
The terms NAND and NOR, which technically describe logic functions, are normally used in the context of memory to describe Flash, not RAM.
So basically, I don't understand your question. Maybe you could be more specific? Actual part numbers with links to their datasheets would be best. Some explanation of what you want to actually accomplish would also go a long way towards helping us to help you.
Last edited by PaulStoffregen; 03-20-2017 at 09:18 PM.
Sorry I think I've hijacked my own thread.
I choose the path of the Flash chip, faster than SD card but still takes a lot of time to erase everything.
I'm using right now the W25Q128FV with amazing results, but very slow erase time.