首页| 论坛| 消息
主题:Cheap_Flash_FS(preallocate version)--Embedded FAT16/32 file system source code for free download
figureyang发表于 2026-05-29 09:11
Cheap_Flash_FS(High_level_version--preallocate version)--Embedded FAT16/32 file system source code for free download
This code is compatible with FAT16/FAT32 totally 2 formats,compatible with long file name.
compatible with chinese long file name(compatible with GB2312/UNICODE codepage(which can be disable,save the ROM space)).
compatible with subdirectory,in support of file read,write,delete,create ect.. and other related functions.
finally,the code is totally write by the C code,can port to other platforms to achieve the file system module.
this code is released free code, user can free test,research,apply.also allowed used on commercial applications.
if you want to contact with the author,please follow the way below.
e-mail:292942278@qq.com or tony_yang123@sina.com.cn

change note:
add create file allocate function, this can enhance write file speed.
create_file_with_preallocate("aaaaaaaaaaaaaa.rar",30540551);
HANDLE1 = open_file_for_preallocate("aaaaaaaaaaaaaa.rar");
use open_file_for_preallocate() function open file,when write file with preallocate
if(write_file(HANDLE1,buf, cc)==Disk_is_full)
the write length should align with 512 byte. can not the with no align 512 bytes.
allocate function can enhance the write file speed.
it is test on the STM32H7,THE tested speed list as below
use preallocate function, write file 64K length one time
NORMAL sd card: write file 4.7MB/S
16GB class 10 SD card's speed:12.5MB/S
32GB class 10 SD card's speed:8.3MB/S

up test result 's speed a little low than XP,
probably the cpu speed low than PC.
port notice:
the file system use cache fat and file size.
so don't forget call cache write back function at
function : write_flash_sector(u8 *buf,u32 sector, u8 disk_id,u32 sector_number) at
flash_management.c.
u32 sector__,i;
u8 *buf__;
sector__ = sector;
buf__ = buf;
for(i = 0;i
附件: cheap_flash_fs(preallocate version).rar (2174 K) 下载次数:0
下一页 (1/2)
回帖(0):

全部回帖(0)»
最新回帖
收藏本帖
发新帖