cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Access External Flash memory as File System

rkuma.21
Associate III

Hi STM Team,

I need to access test.wav audio file from External SPI Flash memory.

Is there is any file system library to mount spi flash memory as file system?

I am using Nucleo - G070RB.

Is there is any microcontrollers with library that support external flash memory as file system.

Please provide me the suggestions.

3 REPLIES 3

With FATFS you put your Read and Write functionality in the DISKIO layer. For QSPI NOR Flash devices use 4KB sectors, as this matches the Erase size and reduces complications. Write as 16 256-byte pages.

Routines translate blocks into linear address within the memory.

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

@Tesla DeLorean Thanks for your reply.

 

Is already have any library to read and write files to SPI flash memory, please suggest any.

Saket_Om
ST Employee

Hello @rkuma.21 

 

For integrating FatFS with external flash, you would need to write a disk I/O driver specific to your SPI flash, similar to the sd_diskio driver mentioned for SD cards in this example.

Unfortunately, there is no example provided by ST in the Firmware package. However, you can refer to these threads:

 

If your question is answered, please close this topic by clicking "Accept as Solution".

Thanks
Omar