嵌入式技术论坛
直播中

江左盟

8年用户 1417经验值
擅长:电源/新能源
私信 关注
[问答]

SPI Flash挂载FatFs异常是何原因?如何解决?

基于M25P80 spi flash,使用SFUD通用驱动库,貌似M25P80被识别到了,finsh输出信息如下:
| /
RT - Thread Operating System
/ |  3.1.4 build Aug 24 2019
2006 - 2019 Copyright by rt-thread team
[SFUD] Warning: Read SFDP parameter header information failed. The M25P80 is not support JEDEC SFDP.
[SFUD] Find a Micron M25P80 flash chip. Size is 1048576 bytes.
[SFUD] M25P80 flash device is initialize success.
msh />
,继续挂载文件系统,dfs_mount(“M25P80”,”/“,”elm”,0,0);finsh输出信息如下:
| /
RT - Thread Operating System
/ |  3.1.4 build Aug 24 2019
2006 - 2019 Copyright by rt-thread team
[SFUD] Warning: Read SFDP parameter header information failed. The M25P80 is not support JEDEC SFDP.
[SFUD] Find a Micron M25P80 flash chip. Size is 1048576 bytes.
[SFUD] M25P80 flash device is initialize success.
The sector size of device 65536 is greater than the sector size of FAT.
M25P80 mount to / failed!
msh />;
执行,mkfs -t elm M25P80;打印:msh />mkfs -t elm M25P80
format error
mkfs failed, result=-12
;the sector size of device 超出 4096,不知原因在哪?请教!请教高手!
2.jpg

回帖(1)

刘丹

2023-2-10 14:09:06
使用menuconfig正确配置最大扇区大小
举报

更多回帖

发帖
×
20
完善资料,
赚取积分