Microchip
直播中

陈游斗

8年用户 1187经验值
擅长:控制/MCU
私信 关注
[问答]

Harmony USB MSD怎么设置

我有一个问题,使和谐的USB /主机/ MSD基本上与一个新的配置工作。如果我使用PIC32 MZEFEFSKIGItiN DYN项目,并强制加载到我的目标与PIC32 MZ2048 EFG100它的工作。如果我添加一个新的配置项目没有BSP,并执行以下将不工作1。没有BSP选择2.设置时钟到EC,24MHz,200兆赫PLL3。USB堆栈、中断、主机、MSD主机客户端3。文件系统服务、自动装入、媒体0、SysffsMediaType、MSD、FAT文件系统4。驱动/定时器,动态,TMR实例0,TMRSIDID2,层间4,子级0,内部,256, 16位,运行满,当我打开USB /文件系统TMR ID 1时,选择不同的优先级,我做MatH5。项目CONF/XC32 /通用/堆到5006。DEVCFG0/ICCE/ICD= PGX27。将AppSubBLeD1…3添加到PIN设置中。应用程序指出,我应该按顺序运行:1个AppHytStaseBuxEnabeLe2 AppyStaseWaITyFuxBuxEnable完成,3个AppStaseWaITyFoxDeVice附件,AppyStaseEnEvice连接,//这只适用于OpenSfILIE4APPYSTATEOPENUX文件,5 APPYSTATEXWORGEDYToScript,6 APPYSTATEXOLSEEX文件,BuSuxEnable完成没有进入下一个状态。这是由3个LED的测试决定的:如果(UBS.HooSoistBuSIS启用(0))永远不会返回。BSP中有什么东西导致了比正常MHC所能完成的项目更多的配置吗?有谁参与这个问题?谢谢

以上来自于百度翻译


      以下为原文

    I am having an issue getting the HARMony USB/Host/MSD Basic to work with a new configuration.
If I use the PIC32MZ_ef_SK_int_dyn project and force load it on to my target with a PIC32MZ2048EFG100 it works.
If I add a new configuration to the project without a BSP and do the following it will not work:
1. No BSP selected
2. Set Clock to  EC, 24MHZ, 200MHZ PLL
3. USB Stack, Interrupt, Host, MSD Host Client
3. File System Services, Auto Mount, Media 0 , SYS_FS_MEDIA_TYPE_MSD, FAT File System
4. Driver/Timer, Dynamic, TMR Instance 0, TMR_ID_2, Inter Level4, Sub Level 0, Internal, 256, 16 bit, run full
When I turn on USB/File System TMR ID 1 is selected with different priority which I make to match
5. Project Conf/XC32/General/Heap to 500
6. DEVCFG0/ICCE/ICD = PGX2
7. Add APP_USB_LED1..3 to Pin Settings.

The APP States that I should be running through in order are:
1    APP_STATE_BUS_ENABLE
2    APP_STATE_WAIT_FOR_BUS_ENABLE_COMPLETE,
3    APP_STATE_WAIT_FOR_DEVICE_ATTACH,
     APP_STATE_DEVICE_CONNECTED,  // this just goes on to Open_File
4    APP_STATE_OPEN_FILE,
5    APP_STATE_WRITE_TO_FILE,
6    APP_STATE_CLOSE_FILE,

The BUS_ENABLE_COMPLETE never goes on to the next state.
This is determined by the 3 LED's.
The test:
if(USB_HOST_BusIsEnabled(0))
never comes back true.

Is there something in the BSP that is causing more configuration of the project than can be done with normal MHC?
Any one run in to this issue?

Thanks


回帖(7)

陈杰

2019-4-19 14:28:53
我似乎记得在另一篇文章中关于阻止电话和需要RTOS的事情。然后也许(因为我老了)我怀念它,它只与Wi-Fi有关。

以上来自于百度翻译


      以下为原文

    I seem to remember something in another post about blocking calls and the need for an RTOS.
Then again maybe ( as I am getting old ) I miss remember and it only related to wi-fi .
举报

王焕树

2019-4-19 14:48:06
参考配置设置为OSAL orOSAL配置为没有RTOS(裸金属)环境。这是默认的任何和谐项目。所以我不认为这是问题。我已经走过了MHC的每个部分,尝试使配置相同,唯一的区别是我的。缺少一个BSP,但是不需要它来启动和运行。

以上来自于百度翻译


      以下为原文

    The reference configuration is setup with OSAL or
OSAL is configured for no RTOS (bare metal) environment
This is the default for any Harmony project.
 
So I don't see that as the issue.
I have gone through each section of the MHC to try and make the to configuration the same, the only diff is that mine is missing a BSP.
But that should not be required to get it up and running.
举报

陈晨

2019-4-19 15:00:34
没有USB MSD主机没有RTOS的工作。但是在文件系统中可能有一些阻止调用。你使用的是Microchip EVE板吗?这是你的董事会的选择吗?PIC32 MZ2048 EFG100?好奇板?什么版本的和声?

以上来自于百度翻译


      以下为原文

    No the USB MSD Host works without an RTOS.
But there are some may block calls in the file system.
Are you using a Microchip Eval Board?
Is that the Selection for your board? PIC32MZ2048EFG100? Curiosity Board?
What version of Harmony?
 
举报

陈晨

2019-4-19 15:09:00
也许,除了在BSP V1.XX中有所需的功能之外,我不确定他们在V2.XXBOOL BSPUSSUBVSwitcExchange CurrurtDebug(UIT88T端口)空隙BSPUSSUBVBUS POWABLE(UIT88T端口,BOOL启用)中做了什么

以上来自于百度翻译


      以下为原文

   


Maybe, except there are required functions in the BSP V1.XX, I am not sure what they did in V2.XX
bool BSP_USBVBUSSwitchOverCurrentDetect(uint8_t port)
void BSP_USBVBUSPowerEnable(uint8_t port, bool enable)
举报

更多回帖

发帖
×
20
完善资料,
赚取积分