Itsybitsy M0 SPI flash contents

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
stratosfear
 
Posts: 18
Joined: Tue Dec 31, 2013 8:21 am

Itsybitsy M0 SPI flash contents

Post by stratosfear »

I’m working on a project that plays short voice prompts from an SD card or the SPI flash memory on an Itsybitsy M0. It only requires three simple modifications to the AudioZero library.

One change in AudioZero.h

Code: Select all

//#include <SD.h>
#include <sdFat.h>
Two changes in AudioZero.cpp

Code: Select all

//#include <SD.h>
#include <sdFat.h>
and

Code: Select all

//analogWrite(A0, __WavSamples[__SampleIndex++]);
analogWrite(A0, __WavSamples[__SampleIndex++] << 2);        // shift 8 bit wav data to 10 bits
My files are 44 Kbytes to 65 Kbytes in size and work better if stored on SPI flash. I don’t know how much of the flash is available, but I know some of it is reserved for Python. Since all my development is via Arduino, can I safely erase all of the pre-existing files and folders from SPI flash without causing any problems?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Itsybitsy M0 SPI flash contents

Post by mikeysklar »

You have 2MB of SPI flash (total) on the ItsyBitsy M0.
2 MB SPI FLASH chip for storing files and CircuitPython code storage.
There is a guide page for using SPI Flash with Arduino code which includes how to format flash memory.

https://learn.adafruit.com/introducing- ... -spi-flash

User avatar
stratosfear
 
Posts: 18
Joined: Tue Dec 31, 2013 8:21 am

Re: Itsybitsy M0 SPI flash contents

Post by stratosfear »

Long story short: Don't erase the flash if you want to access it as a FAT drive. I tried it and had to restore the CircuitPython stuff.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”