Is there any good starting point to implement a FATFS on NANDFlash ?
The CubeMX has generated FATFS related files but there is no option for NAND flash.
Hello Paul J Kim,
NAND Flash is not supported by CubeMx as mentioned in the UM1718 FatFs section:
NOR and NAND Flash memory are not supported. In this case, the user shall select the FatFs user-defined mode and update the user_diskio.c driver file generated to implement the interface between the middleware and the selected peripheral.
thanks for the comment.
FatFs does not run efficiently on NAND without flash translation layer.
Because of the large size of erase sector (128KB is very common these days), a naive port of FatFs on NAND will wear out the first sector (frequent FAT updates) and run dramatically slow (when individual 512 bytes sector are updated by copying a whole 128KB erase block).
I am working on converting some spl NAND example to HAL NAND example first. It works fine now.
If I finish NAND FATFS, I will look over the performance issue. But I have no choice to use others but NAND Flash at this moment.
Well the real issue here is just how unmanageable 128KB of data will become when you need to insert a KB in the middle...
Maybe FAT isn't the best choice here?
Retrieving data ...