首页 > 其他 > 详细

rt-thread 添加spi flash无法格式化和问题

时间:2021-01-24 01:25:09      阅读:24      评论:0      收藏:0      [点我收藏+]

在添加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

rt-thread 添加spi flash无法格式化和问题

原文:https://www.cnblogs.com/arthurly/p/14319201.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!