2018-11-04 10:29 PM
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
Solved! Go to Solution.
2018-11-05 06:01 AM
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.
2018-11-05 01:08 AM
None of them.
The large block size of the internal flash and speed make it ill suited to the task.
2018-11-05 01:23 AM
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,
2018-11-05 06:01 AM
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.
2018-12-04 12:24 AM
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
2018-12-04 04:01 AM
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.