0

Replaced onboard Flash with S25FL064L
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Replaced onboard Flash with S25FL064L

by Fisch133 on Tue Aug 25, 2020 1:03 pm

Hello,

i have replaced the onboard flash chip of the Adafruit Metro M0 Express Board with a larger Type (S25FL064L from Cypress). It is recognized by the bootlader (METROBOOT Flash Drive is about 7,74MB).
metroboot_drive.png
metroboot_drive.png (14.23 KiB) Viewed 88 times
But then i want to use the Flash with Arduino (eg. SdFat_Format) the program say "Error, failed to initialize flash chip!".

In the variant.h file of the Metro M0 i have replaced

Code: Select all | TOGGLE FULL SIZE
#define EXTERNAL_FLASH_DEVICES  GD25Q16C


with

Code: Select all | TOGGLE FULL SIZE
#define EXTERNAL_FLASH_DEVICES  S25FL064L


but it is not working.

Can somone help me?

Fisch133
 
Posts: 4
Joined: Tue Jun 26, 2018 8:39 am

Re: Replaced onboard Flash with S25FL064L

by Fisch133 on Tue Aug 25, 2020 3:59 pm

I have found the problem.

On Adafruit_SPIFlashBase.cpp i must add into the "possible_devices" section

Code: Select all | TOGGLE FULL SIZE
S25FL064L,


Now i can format the Flash.

But now i have another problem. Then i flash CircuitPhyton on it i can't see the Flash in Windows (The CIRCUITPY Drive)

Fisch133
 
Posts: 4
Joined: Tue Jun 26, 2018 8:39 am

Re: Replaced onboard Flash with S25FL064L

by Fisch133 on Mon Sep 07, 2020 4:33 pm

Somebody any idea?

I think CircuitPhyton is not recognizing the bigger chip. Can this bigger chip be implemented?

Fisch133
 
Posts: 4
Joined: Tue Jun 26, 2018 8:39 am

Re: Replaced onboard Flash with S25FL064L

by User_UMjT7KxnxP8YN8 on Tue Sep 08, 2020 4:55 pm

I don't use CircuitPython but you may have to rebuild it to work with the larger chip. I'd start looking at C:\Users\[YourUserNameHere]\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.14\extras

I had to add QSPI Flash support to the Metro M4 Express boot loader for a personal project, so I don't think the loader cares what QSPI chip you're using. However, the boot loader DOES run the Samba interface that makes your PC see it as a USB drive (sam_ba_monitor.c). You can find the bootloader source code at https://github.com/adafruit/uf2-samdx1/releases/tag/v3.10.0 (scroll all the way to the bottom to get the source).

User_UMjT7KxnxP8YN8
 
Posts: 235
Joined: Tue Jul 17, 2018 1:28 pm

Please be positive and constructive with your questions and comments.