Need to Access External Flash memory as File System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-25 6: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.
- Labels:
-
FatFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-25 6: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 4: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:
- interface external flash to stm32 by fatfs
- FATfs on STM32F767 and external Flash
- FatFS on QSPI Flash
- Fatfs on external flash
Saket_Om
