我有一个问题,使和谐的USB /主机/ MSD基本上与一个新的配置工作。如果我使用PIC32 MZEFEFSKIGI
tiN 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 H
ARMony 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