在添加SST25VF016B格式化和挂载文件系统时遇到无法格式化的问题,提示如下
The sector size of device is greater than the sector size of FAT.
[D/main] elmfs on SST25 mount fail
format error
解决方法:
rtconfig.h文件
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096 之前默认是512,改为4096
dfs.h文件
#define SECTOR_SIZE 4096 之前默认是512,改为4096
成功提示
[D/main] elmfs on SST25 mount fail
[D/main] make elmfs on SST25,then remount
[D/main] elmfs on SST25 mount ok
disk free: 1.9 MB [ 506 block, 4096 bytes per block ]
[D/main] system start