完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我目前正试图将文件系统库添加到一个成熟的项目pic32mx695f512h,以及CDC、MSD和谐应用程序V1.06中。驱动器NVM已经与USB MSD相关联,并且已经存在并在添加FS之后继续发挥作用。这是需要安装的驱动器,因为它有待读取的文件并在PIC内部使用。类似的调用无法安装磁盘。调用挂装函数的状态机如下:情况FS_STATE_WATE_WAIT_FOR FOR FOR MOUNT:if(SYS_FS_FS_Mount_Mount("/dev/nvma1"""/dev/nvma1 1 1"""""/mnt/my驱动器",FAT,0,NULL)=SYS_FS_RES_RES_RES_SUCCESS) =fsData.state=FS_STATE_FIFILE_OPEN=FS_FS_STATE_FILE_OPEN;其他sprintf((char*)fsData.data((char*)fsfsfsData.data.data,"\\n”)break;我想挂载函数ING MSD,但没有发现由USB MSD应用程序初始化的关联变量。我怀疑“/DEV/NVMA1”从来没有被创建过,而且真的不存在,而且总是失败。我怀疑“/mnt/myDrive”也是一样的。问题:对于USB MSD,我可以安装驱动器并读取其中已经包含的文件的devName是什么?谢谢你考虑我的问题。西洛林格
以上来自于百度翻译 以下为原文 I am currently attempting to add the File system library into a mature project, pic32mx695f512h, and the CDC, MSD project in hARMony apps V1.06. I have added the File System(FS) library, which initializes the FS but fails to mount the drive. The drive, NVM, has been associated with the USB MSD and already exists and continues to function after adding the FS. This is the drive that needs to be mounted as it has the files to be read and used internal to the PIC. I think the USB associates an endpoint to the structured flash memory that is the diskimage.c. Having read through the harmony help and looked at a couple of example calls to mounting the disk utilizing similar calls fail to mount the disk. The state machine to call the mounting function is as follows: case FS_STATE_WAIT_FOR_MOUNT: if(SYS_FS_Mount("/dev/nvma1","/mnt/myDrive",FAT,0, NULL) == SYS_FS_RES_SUCCESS) fsData.state = FS_STATE_FILE_OPEN; else sprintf((char *)fsData.data,"rn Mount errorrn"); break; I want to mount the functioning MSD, but have not found the associated variable that was initialized by the USB MSD application. I suspect the "/dev/nvma1" has never been created and really does not exist and will always fail. I suspect the same of "/mnt/myDrive". Question: What is the devName the mountName for the USB MSD that I can mount the drive and read the files already contained on it? Thank you for your consideration of my problem? Cy Drollinger |
|
相关推荐
3个回答
|
|
你知道你必须打电话到SysffsIt坐骑直到你得到SysffsReScript成功(或者你决定暂停)?对于SD卡来说,大约需要0.01秒。Nick
以上来自于百度翻译 以下为原文 You know that you have to call SYS_FS_MOUNT until you get SYS_FS_RES_SUCCESS (or you decide to time out)? For an SDCard, that takes about 0.01 seconds. Nick |
|
|
|
Nick,谢谢!状态机直到调用SysffsIn Syt是SysffsSReSuffess时才改变情况。因此,循环一次,它进入A返回SysffsRESIa失败的情况。
以上来自于百度翻译 以下为原文 Nick, Thank you! The state machine never changes case until the call to SYS_FS_MOUNT is SYS_FS_RES_SUCESS. So cycle after cycle it just enters the case a returns SYS_FS_RES_FAILURE. |
|
|
|
如果从两个不同的应用程序(MSD和文件系统)访问相同的媒体(NVM),则需要确保NVM驱动程序被配置为支持多个客户端。最新版本的和声有一个示例演示。
以上来自于百度翻译 以下为原文 If you are accessing the same media (NVM) from two different applications (MSD and File System), you will need to ensure that the NVM driver is configured to support more than one client. The latest version of harmony has an example demo for this. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
673浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
599浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 20:40 , Processed in 1.512404 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号