2017-01-13 02:21 AM
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.
#fatfs2017-01-13 03:55 AM
Hello
H_Kim.Paul_Jay
,NAND Flash is not supported by CubeMx as mentioned in the
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.
Regards
ImenD
2017-01-13 06:20 AM
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).
2017-01-13 08:06 PM
thanks for the comment.
2017-01-13 08:10 PM
thanks for the comment.
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.
2017-01-13 09:53 PM
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?