M4 internal SPI Flash - write/read

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
Wambo6000
 
Posts: 1
Joined: Fri Aug 06, 2021 3:55 am

M4 internal SPI Flash - write/read

Post by Wambo6000 »

Hello.
I would like to install an SD card memory in my project. The ItsyBitsy M4 Express has an internal SPI flash. But I can't find any way to write about the program on it or to read from it. Using an SD card extension, you can create a text file on an SD card and write content there or read from it. I would like to do that with the M4 SPI flash memory, but I can't find a way.

I often get an error in the Arduino IDE that it doesn't work with the ATSAMD51.
Is there a way to access (read / write) the internal flash memory via a running Arduino program?
Do I still have to move SPI ports somewhere? If how?

Thank you in advance.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: M4 internal SPI Flash - write/read

Post by adafruit_support_mike »

The SAMD51 microcontroller used in the ItsyBitsy M4 has an internal Flash array, and the board has a separate 2MB Flash chip to store data for CircuitPython.

Reading and writing data to the 2MB external Flash chip is done through the ‘storage’ module in CircuitPython:

https://circuitpython.readthedocs.io/en ... index.html
https://learn.adafruit.com/introducing- ... on-storage

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

Return to “Itsy Bitsy Boards”