Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Issue with SPIMemory Library and Metro M0 Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Issue with SPIMemory Library and Metro M0 Express

by geryuu11 on Tue Mar 03, 2020 4:49 pm

Hello,
Im trying to use the SPIMemory library(https://github.com/Marzogh/SPIMemory) with the Adafruit Metro M0 Express, and cant get it run its simple example sketches correctly. It never recognizes my SPI Flash Chip. Was wondering if anybody else has had this issue?

And I know about the "Adafruit SPIFlash" library but I need to write my data to SD card at end of loop,and "Adafruit SPIFlash" library and "SD" library dont play well with each other. But I will say the "Adafruit SPIFlash" library does recognize my SPI chip and writes/reads to it correctly,so I know it isnt a hardware issue.

And for brief explanation of what im trying to do is. Take a ADC sample(sampled at 50kHz),store into SPI Flash,once enough samples are in SPI Flash,dump data to SD card.

geryuu11
 
Posts: 2
Joined: Mon Feb 03, 2020 8:13 am

Re: Issue with SPIMemory Library and Metro M0 Express

by adafruit_support_mike on Mon Mar 16, 2020 3:43 am

The built-in Flash chip uses a different SPI interface than the one connected to MOSI/MISO/SCK at the edge of the board. You can see the pins labeled FLASH_MISO and so forth in the schematic:

https://cdn-learn.adafruit.com/assets/a ... 1493850214

You'd probably have to modify that library to use an alternate SPI bus.

adafruit_support_mike
 
Posts: 61443
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.