2024-06-25 06:00 AM
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.
2024-06-25 06:07 AM
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.
2024-06-26 04:06 AM
@Tesla DeLorean Thanks for your reply.
Is already have any library to read and write files to SPI flash memory, please suggest any.
2024-06-26 04:06 AM
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: