Page 1 of 1

SPI flash + internal flash + SD card

Posted: Thu Apr 04, 2019 11:56 am
by mcauser
I'm working on the VCC-GND F407 ZGT6 mini board definition:

It comes with a MicroSD card slot and a W25X40BVSNIG SPI Flash IC on SPI1 (4Mbit, 512x8bit, 104 MHz).

Looking at the STM32L476DISC board definition, it looks like it sets up a block device using /drivers/memory/spiflash.c, but I'm not sure if that means you can run both internal flash and SPI flash at the same time or if it's one or the other.

I'm hoping to be able to boot my ZGT6 board using the internal flash, but then have access to files on an optional SD card or the attached W25X40 SPI flash. eg.

Code: Select all

Can anyone point me in the right direction?

I've also got a few of these W25Q128 modules, which could be similarly implemented: ... 44173.html