为节约有限的Flash存储资源,快速有效地移植嵌入式文件系统,以满足不同USB主机系统的实际应用需求,在分析Bulk-Only传输协议、MassStorage类协议以及FAT12/16/32文件格式的基础上,提出了一种软件层次清晰、易于裁剪、对操作系统无依赖的嵌入式文件系统设计方法。该方法明确划分了文件系统各功能模块,合理封装了各模块的对外接口函数,并对文件系统类型识别、簇空间分配以及长文件名等问题进行了有效处理。通过设计一个以Freescale ColdFire系列芯片MCF52223为主控芯片的道闸管理系统,表明了该方法的可行性和有效性。
To save the limited Flash storage resources and transplant embedded file system quickly and efficiently to meet different application requirements of USB host system, a design method of embedded file system with scalable size, clear software hiberarchy and no dependence on the operating system is presented after the analysis of bulk-only transport protocol, massstorage protocol, as well as FAT12/16/32 file formats. Many modules are created and external interface functions of each module are defined. The problems such as identifying the file system type, allocating clusters and dealing with the long file names are solved. By design case of a barrier management system based on MCF52223 which is a member of the Freescale family of ColdFire microcontrollers, the feasibility and effectiveness of the presented method is demonstrated.