cancel
Showing results for 
Search instead for 
Did you mean: 

Does FATFS work to write and read data to an external FLASH ROM with SPI interface?

msingh
Senior

Hi all,

I have connected a flash ROM (SST26VF016B-I/SM) to the STM32F407ZGT the interface between them is SPI and I have tried to use the FATFS to create,write and read files but at first it doesn't seem to work. I would like to if anyone has tried this and could help me achieve this.

Thanks in advance

1 REPLY 1

You'd have to write and thoroughly test sector level read/write routines which you can later integrate into the DISKIO layer.

Given the block size on the specified device you'd likely want to use 4KB sectors, otherwise you're going to have to implement the read-modify-erase-write method to support 512 byte sectors.

I suspect the device/performance will be low.

For file systems consider using the SDIO/SDMMC interface for either SD Cards or eMMC chips.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..