How to mount SPI Flash with FAT file system?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
water
Posts: 75
Joined: Sun Sep 24, 2017 9:16 am

How to mount SPI Flash with FAT file system?

Post by water » Thu Feb 01, 2018 7:25 pm

I connect W25Q128 (16MB) SPI Flash to ESP32 via HSPI, how can I use 'os' module mount the SPI Flash with a FAT file system like SD card?
:?: :)

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: How to mount SPI Flash with FAT file system?

Post by pythoncoder » Fri Feb 02, 2018 6:41 am

You need to write a driver for the chip. This uses low level chip commands to support the block protocol, which enables MicroPython to install the FAT filing system on the device. You'll find an example for the Winbond W25Q32 here which you can adapt for your chip.
Peter Hinch
Index to my micropython libraries.

Post Reply