|  | 
 
| 
在我们使用FATFS的时候经常遇到挂载失败等问题,官方也给出了相关提示,告诉我们是什么问题就例如:12(The volume has no work area),这个翻译成中文就是卷没有工作区,遇到这个我们对SD卡进行一次格式化就好
×
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。您需要 登录 才可以下载或查看,没有账号?立即注册 
  FR_OK = 0,                /* (0) 成功*/
 FR_DISK_ERR,            /* (1) A hard error occurred in the low level disk I/O layer */低级磁盘I/O层中发生硬错误
 FR_INT_ERR,                /* (2) Assertion failed断言失败 */
 FR_NOT_READY,            /* (3) The physical drive cannot work物理驱动器无法工作 */
 FR_NO_FILE,                /* (4) Could not find the file找不到文件 */
 FR_NO_PATH,                /* (5) Could not find the path找不到路径 */
 FR_INVALID_NAME,        /* (6) The path name format is invalid 路径名格式无效*/
 FR_DENIED,                /* (7) Access denied due to prohibited access or directory full 由于禁止访问或目录已满,访问被拒绝*/
 FR_EXIST,                /* (8) Access denied due to prohibited access 由于禁止访问,访问被拒绝*/
 FR_INVALID_OBJECT,        /* (9) The file/directory object is invalid 文件/目录对象无效*/
 FR_WRITE_PROTECTED,        /* (10) The physical drive is write protected 物理驱动器受写保护*/
 FR_INVALID_DRIVE,        /* (11) The logical drive number is invalid 逻辑驱动器号无效*/
 FR_NOT_ENABLED,            /* (12) The volume has no work area 卷没有工作区*/
 FR_NO_FILESYSTEM,        /* (13) There is no valid FAT volume 没有有效的FAT卷*/
 FR_MKFS_ABORTED,        /* (14) The f_mkfs() aborted due to any parameter error                              f_mkfs()由于任何参数错误而中止*/
 FR_TIMEOUT,                /* (15) Could not get a grant to access the volume within defined period 无法在定义的时间段内获得访问卷的权限*/
 FR_LOCKED,                /* (16) The operation is rejected according to the file sharing policy 根据文件共享策略,操作被拒绝*/
 FR_NOT_ENOUGH_CORE,        /* (17) LFN working buffer could not be allocated 无法分配LFN工作缓冲区*/
 FR_TOO_MANY_OPEN_FILES,    /* (18) Number of open files > _FS_SHARE 打开的文件数>_FS_SHARE*/
 FR_INVALID_PARAMETER    /* (19) Given parameter is invalid给定的参数无效 */
 
 
 
 
 | 
 |