野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9089|回复: 3

FatFS_Udisk一直挂载文件系统失败(3)

[复制链接]
发表于 2016-6-12 15:59:51 | 显示全部楼层 |阅读模式
火哥,这个例程一直挂载文件系统失败(3)是什么情况?
回复

使用道具 举报

发表于 2016-6-13 09:26:36 | 显示全部楼层
你跟踪下3是啥错误,文件系统的那个结构体里面有注释说明
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-13 13:34:12 | 显示全部楼层
fire 发表于 2016-6-13 09:26
你跟踪下3是啥错误,文件系统的那个结构体里面有注释说明

typedef enum {        FR_OK = 0,                                /* (0) Succeeded */        FR_DISK_ERR,                        /* (1) A hard error occurred in the low level disk I/O layer */        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 */        FR_MKFS_ABORTED,                /* (14) The f_mkfs() aborted due to any parameter error */        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 */        FR_TOO_MANY_OPEN_FILES,        /* (18) Number of open files > _FS_SHARE */        FR_INVALID_PARAMETER        /* (19) Given parameter is invalid */} FRESULT;


物理驱动器没工作
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-6-13 13:35:46 | 显示全部楼层
fire 发表于 2016-6-13 09:26
你跟踪下3是啥错误,文件系统的那个结构体里面有注释说明

我硬件电源直接接5V,然后DM,DP用的是PA11,PA12.不知道是什么问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-9-20 20:21 , Processed in 0.031550 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表