完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
背景:MPLAB X IDE V4.05、XC32 V1.44 B、和声V2.05.01、PIC32 MZ2064 DAG169、PIC32 MZ2064 DAG169开发板具有显示功能。我一直跟踪到SysffsMediaAuthMealm中的SysSysfsMuntSt卷。这里是检查卷名和媒体类型。我的问题是,我找不到GysfsMetimaAdAgObj.fsMuntToT中填充了什么意思。我能找到它的唯一时间是在StultIG.I.C中,它设置为NULL,这对ME没有太大的影响。StythyIn.CysSyfsfIdiaAuxMaunel.CSOO,我不确定我的问题是什么,所以我将从这个开始。当一个const设置为NULL时,SysFSMoNTTABLE怎么能填充任何有意义的东西?如果这是不正确的,我如何让它填充一些含义充分?对不起,开放式的问题,谢谢您的帮助!
以上来自于百度翻译 以下为原文 Background: MPLAB X IDE v4.05, XC32 v1.44B, HARMony v2.05.01, PIC32MZ2064DAG169, PIC32MZ2064DAG169 development board with display. I am trying to get a USB device to auto mount. I have tracked it all the way down to _SYS_FS_MountVolume within sys_fs_media_manager.c. Here is checks the volume name and media type. My issue is that I can not find where gSYSFSMediaManagerObj.fsMountTable is populated with anything meaning full. The only time I can find it set is in system_init.c where it is set with NULL which does not make much since to me. system_init.c const SYS_FS_MEDIA_MOUNT_DATA sysfsMountTable[SYS_FS_VOLUME_NUMBER] = { {NULL} }; sys_fs_media_manager.c SYS_FS_MEDIA_MANAGER_OBJ gSYSFSMediaManagerObj = { gSYSFSMediaObject, gSYSFSVolumeObject, sysfsMountTable, NULL, gSYSFSMediaBuffer, 0, 0, false }; static void _SYS_FS_MountVolume ( SYS_FS_MEDIA_TYPE mediaType, const uint8_t *volumeName ) { uint8_t volumeIndex = 0; const SYS_FS_MEDIA_MOUNT_DATA *fsMount = (const SYS_FS_MEDIA_MOUNT_DATA *)&gSYSFSMediaManagerObj.fsMountTable[0]; for (volumeIndex = 0; volumeIndex < SYS_FS_VOLUME_NUMBER; volumeIndex++) { if (mediaType != fsMount[volumeIndex].mediaType) { continue; } if (strcmp((const char *)volumeName, (const char *)(fsMount[volumeIndex].devName + 5)) != 0) { continue; } if (SYS_FS_RES_SUCCESS == SYS_FS_Mount(fsMount[volumeIndex].devName, fsMount[volumeIndex].mountName, fsMount[volumeIndex].fsType, 0, NULL)) { if (gSYSFSEventHandler) { gSYSFSEventHandler(SYS_FS_EVENT_MOUNT, (void*)fsMount[volumeIndex].mountName, (uintptr_t)NULL); } } break; } } So I am not sure what my question is so I will start with this. How can sysfsMountTable be populated with anything meaningful when it is a const set to NULL? Also If that is not correct how do I get it to populate with something meaning full? Sorry for the open ended questions and Thank you for all your help! |
|
相关推荐
5个回答
|
|
SysFSMoNTTABLE内容是基于和声作曲器(MHC)中的文件系统服务配置生成的。您启用了文件系统服务吗?您将需要启用文件系统服务,检查“使用文件系统自动安装功能”,并选择媒体类型为“SysffsMediaType Type MSD”。如果其他设备(USB驱动程序、堆栈)被正确配置,USB驱动器将自动安装到“/MNT/MyDeDeV1”,这是MHC中设置的默认挂载点。如果需要,可以更改挂载点。
以上来自于百度翻译 以下为原文 The sysfsMountTable contents are generated based on the File System Service configuration in Harmony Composer (MHC). Did you enable the File System Service? You will need to enable File System Service, check "Use File System Auto Mount Feature" and select Media Type to "SYS_FS_MEDIA_TYPE_MSD". If everything else (USB driver, stack) is configured correctly, the USB drive will be auto mounted to "/mnt/myDrive1" which is the default mount point set in MHC. You can change the mount point if you want. |
|
|
|
这就是我设置的方式。所以我很困惑为什么它没有填充正确的结构。当我生成代码时,我已经选择了“自动覆盖用户更改”,因此它应该用正确的值重写。下一步我该怎么办?
以上来自于百度翻译 以下为原文 That is the way I have it setup. So I am confused why it is not filling in the correct structure. When I generate the code I have "Automatically Override User Changes" selected so it should override that with the correct values. What should I do next? Attached Image(s) |
|
|
|
“文件系统”的图像和我的一样。“USB库”设置怎么样?
以上来自于百度翻译 以下为原文 The 'file system' image looks same as mine. What about the 'USB Library' settings? |
|
|
|
同时确保堆的设置足够大。(我使用10000,一些演示中的500不提供可靠的操作)
以上来自于百度翻译 以下为原文 Also ensure your heap is set large enough. (I use 10000, the 500 in some of the demos doesn't give reliable operation) |
|
|
|
就是这样!由于某种原因,我的堆大小是0。设置为10000工作。我现在可以从USB读取。
以上来自于百度翻译 以下为原文 That was it! My heap size was 0 for some reason. Set it to 10000 work. I can now read from the USB. |
|
|
|
只有小组成员才能发言,加入小组>>
5231 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3200 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
770浏览 1评论
658浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
586浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
668浏览 0评论
570浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 19:58 , Processed in 1.351200 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号