初级会员

- 积分
- 110
- 金钱
- 110
- 注册时间
- 2015-1-13
- 在线时间
- 15 小时
|
1金钱
FRESULT Status;
// 注册一个工作区(挂载分区文件系统)
// 在使用任何其它文件函数之前,必须使用f_mount函数为每个使用卷注册一个工作区
// 挂载eMMC 1:立即挂载 0:稍后挂载 返回值一定为成功
Status = f_mount(fatfs, Path, 1);
if(Status != FR_OK)
{
xil_printf("Volume is not FAT formated, please formating FAT!\r\n");
xil_printf("f_mount function return value is %d!\r\n",Status);
return XST_FAILURE;
}
其中Path = "0:";
文件系统挂载有时候能一次成功,有时候需要挂载很多次再能挂载成功,看回传返回值为3
FR_NOT_READY, /* (3) The physical drive cannot work */
这个是硬件问题吗还是软件驱动有问题?我们硬件设计的电源不稳定
|
|