Method for applying Yaffs file system to NorFlash
暂无分享,去创建一个
The invention discloses a method for applying a Yaffs file system to NorFlash. The method includes the following steps: (1) each block in the NorFlash is divided into a plurality of pages; (2) an underlying data random reading program, an underlying data random writing program and an underlying data block-based erasure interface program of the NorFlash are written out through programming languages according to a storage equipment data sheet of the NorFlash; (3) the programs are packaged on an underlying data interface according to the size of a data field and the size of the blocks; (4) a structure body of the Yaffs file system is filled with parameters such as the size of the data field, the size of the blocks, a data page-based reading interface, a data page-based writing interface and a block-based erasure interface of the pages in the NorFlash. By means of the method, the Yaffs file system which cannot be easily disturbed by factors such as static electricity, frequent electrification and frequent electricity breaking can be applied to NorFlash storage equipment.