SPI flash + internal flash + SD card

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
User avatar
Posts: 453
Joined: Mon Jun 15, 2015 8:03 am

SPI flash + internal flash + SD card

Post by mcauser » Thu Apr 04, 2019 11:56 am

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:
https://www.aliexpress.com/item/1pc-W25 ... 44173.html

Post Reply