FFS for serial flash?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FFS for serial flash?

跳至解决方案
1,383 次查看
pietrodicastri
Senior Contributor II

Good morning

I see the documentation for the file system attached to the MQX documentation, it seems the porting is possible only to

devices with address / data bus. Is there a possibility to port to serial SPI flash device  this driver???

Thank You

Pietro

标记 (2)
1 解答
1,156 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Pietro:

Yes, you can port MFS (MQX file system) to SPI flash. But we don't suggest our customers do this. MFS is not intended to be used on internal flash memory storage, due to wear leveling reasons. MFS updates the FAT tables very often, and the FAT table is stored always at the same location, thus, the flash memory wars out quickly. Eevery update to the FAT table would require to read the flash sector, modify the data in RAM, program the data from RAM to the internal flash sector. The maximum number of Program/Erase cycles of an internal flash sector is limited.

Regards

Daniel

在原帖中查看解决方案

3 回复数
1,157 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Pietro:

Yes, you can port MFS (MQX file system) to SPI flash. But we don't suggest our customers do this. MFS is not intended to be used on internal flash memory storage, due to wear leveling reasons. MFS updates the FAT tables very often, and the FAT table is stored always at the same location, thus, the flash memory wars out quickly. Eevery update to the FAT table would require to read the flash sector, modify the data in RAM, program the data from RAM to the internal flash sector. The maximum number of Program/Erase cycles of an internal flash sector is limited.

Regards

Daniel

1,156 次查看
pietrodicastri
Senior Contributor II

Hi Daniel

Thank You. Just as a final clarification. If I really want to do I need to dig in to the code by myself, or a guideline for SPI porting exists somewhere???

Thanks a lot

Pietro

0 项奖励
回复
1,156 次查看
danielchen
NXP TechSupport
NXP TechSupport

HI Pietro:

unfortunately we do not have such a guideline.

Regards

Daniel

0 项奖励
回复