CPX spiflash not working

Play with it! Please tell us which board you're 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
daverlee
 
Posts: 19
Joined: Tue Jun 11, 2013 9:31 pm

CPX spiflash not working

Post by daverlee »

I'm trying to run the spi flash examples, none of them are able to recognize the flash.
I'm using the latest libraries
adafruit_spiflash v4.0.0
sdfat v2.2.0
adafruit SAMD boards v1.7.11
arduino ide 2.0

SPI wasn't recognized so I used the custom SS and SPI. I tried both "SS" and "35" for the chip select
every time I reboot the cpx I get a different ID:

Adafruit SPI Flash FatFs Full Usage Example
Unknown flash device 0x0
Error, failed to initialize flash chip!
Adafruit SPI Flash FatFs Full Usage Example
Unknown flash device 0xFF0005
Error, failed to initialize flash chip!
Adafruit SPI Flash FatFs Full Usage Example
Unknown flash device 0xFF0000
Error, failed to initialize flash chip!

I must have the chip select wrong, or possibly the spi interface. Does anyone know?
what flash device ID should I expect?

User avatar
daverlee
 
Posts: 19
Joined: Tue Jun 11, 2013 9:31 pm

Re: CPX spiflash not working

Post by daverlee »

I got a little bit further. My CPX has an additional spi device sharing the data lines and I needed to hold that device's CS line high. now I can read the correct JEDEC code:
Flash chip JEDEC ID: 0xC84015

however, now if I try to format, I get this error:
Error, f_mount failed with error code: 13

I've tried erasing and reformatting, still get the same error.

User avatar
daverlee
 
Posts: 19
Joined: Tue Jun 11, 2013 9:31 pm

Re: CPX spiflash not working

Post by daverlee »

I was finally able to get this to work by going back to the legacy arduino ide. I installed clean, spiflash worked right away. there's something wonky about circuit playground express and arduino 2.0

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

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”