Skip to main content
ranran
Senior
November 5, 2018
Solved

Is there a fatFS example that can be used with internal flash memory ?

  • November 5, 2018
  • 5 replies
  • 1559 views

Hello,

In STM32H7 cube examples I see the following related fatFS examples:

en.stm32cubeh7\STM32Cube_FW_H7_V1.3.0\Projects\STM32H743I_EVAL\Applications\FatFs

FatFs_MultiDrives

FatFs_RAMDisk

FatFs_SDRAMDisk

FatFs_USBDisk_RTOS

FatFs_USBDisk_Standalone

FatFs_uSD_DMA_RTOS

FatFs_uSD_DMA_Standalone

FatFs_uSD_Standalone

Which of the above can be used with the internal flash memory ?

Thank you,

ranran

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    QSPI or eMMC would work with FATFS. External NAND is possible, but gets more involved related to block management, wear leveling and ECC. Long term availability and support of foot-prints is complicated.

    Depends also on the number and size of "files" you actually need to manage, and how often they change. One could consider journalling structures over a internal flash sector, or two.

    5 replies

    Tesla DeLorean
    Guru
    November 5, 2018

    None of them.

    ​

    T​he large block size of the internal flash and speed make it ill suited to the task.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ranran
    ranranAuthor
    Senior
    November 5, 2018

    Thanks Clive,

    Are you familiar with alternatives if needed non-volatile filesystem. We don't have sd or usb. We can only have external flash.

    Thanks,

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    November 5, 2018

    QSPI or eMMC would work with FATFS. External NAND is possible, but gets more involved related to block management, wear leveling and ECC. Long term availability and support of foot-prints is complicated.

    Depends also on the number and size of "files" you actually need to manage, and how often they change. One could consider journalling structures over a internal flash sector, or two.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ranran
    ranranAuthor
    Senior
    December 4, 2018

    Hello Clive,

    Sorry for the delayed reply.

    Is one of the these examples can be used with nor spi :

    FatFs_MultiDrives

    FatFs_RAMDisk

    FatFs_SDRAMDisk

    FatFs_USBDisk_RTOS

    FatFs_USBDisk_Standalone

    FatFs_uSD_DMA_RTOS

    FatFs_uSD_DMA_Standalone

    FatFs_uSD_Standalone

    Thank you,

    Ran

    Tesla DeLorean
    Guru
    December 4, 2018

    Nothing is going to be a simple drop in. I'd perhaps suggest reviewing the RAM or SD card examples to provide context and perspective on how a block storage device is expected to interact. ​

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