1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个问题,使和谐的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个回答
|
|
我似乎记得在另一篇文章中关于阻止电话和需要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 . |
|
|
|
参考配置设置为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. |
|
|
|
没有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? |
|
|
|
也许,除了在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) |
|
|
|
和声2.01b.自定义目标板,没有EVAL。MSD基本使用3个LED和一些未经Label-PIN设置为低。只有1个影响USB电源的USB接口。PIC32 MZ2048 EFG100是我的目标板,没有BSP选择。它不需要一个。我在项目T中映射了LED。我的LED灯。所有编译都很好,MHC在做一个生成器时没有问题。有一篇文章介绍了CDC是如何与Octo03相关的,我将在下一步进行检查。
以上来自于百度翻译 以下为原文 Harmony 2.01B. Custom Target Board, no EVAL. The MSD Basic uses 3 LED's and a few UN-labeld pins set to LOW. Only 1 affects the USB which roughs the power to the USB-A connector. The PIC32MZ2048EFG100 is my target board and has no BSP to select. It should not need one. I mapped the LED's in the project to LED's in mine. All compiles just fine and MHC has no issues when doing a generate. There was a post about how doing this with CDC had issues with Config03 which I will be checking next. What am I missing in configuring USB without a BSP.... |
|
|
|
和谐对你做什么和不需要什么有它自己的规则。PotoNo=D320104,UTMyStase=微解和UTMLMe= Link and UTMyType=FY17Q3&;UTMYEng==DeVoToals&UTMyActudio=ToeLess好奇32有CPU,您可以检查它的示意图和示例代码,看看您是否遗漏了任何东西。
以上来自于百度翻译 以下为原文 Harmony has its own rules about what you do and do not need. http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM320104#utm_source=MicroSolutions&utm_medium=Link&utm_term=FY17Q3&utm_content=DevTools&utm_campaign=Article The Curiosity 32 has you CPU you can check its schematic and sample code to see if you are missing anything. |
|
|
|
好的,我已经跟踪了这个问题。我会让论坛评论天气,这是有记录的或没有。在和谐的情况下,即使没有BSP,也有被分配给BSP的PIN功能。PIPS选项是PPS设置之外的:LeDIAH,交换机,VBUS,GPIOOXOUT,GPIOIIN,GPIOSIN。GPIO和ReDyAlTHE将影响PIN标签的使用,无论是在BSP功能还是APP功能。USB主机证明它需要一个VBUS(这也是后面解释的另一个问题),这是为了指示哪个引脚被用来打开/关闭电源到USB总线。您仍然需要设置它的输出和init状态。我们有一个VBUS引脚来测量USB引脚1的电压,现在我们有一个同名的函数。不好用这个名字……也在查看和搜索这个项目时,我找不到对BSPYVUSB功能的要求。这是在安装要求缺少的东西,不知道它应该去哪里。谢谢你在这方面的投入…
以上来自于百度翻译 以下为原文 OK I have tracked this down. I will let to forum comment on weather this is documented or not. In Harmony there are PIN Functions that are assigned to the BSP even if there is no BSP selected. The are the Pin Options that are out side of the PPS setting: LED_AH, SWITCH, VBUS, GPIO_OUT, GPIO_IN, GPIO_CN, GPIO and LED_AL This will affect how a Pin Label will be used, either at the BSP Function or APP functions. The USB Host turns out that it needs a VBUS (which is also an other problem explained latter) which is to indicate which PIN is to be used to turn on/off power to the USB Buss. You still need to set that its an output and init state. We have a VBUS PIN for measuring the USB PIN 1 voltage and now we have a function with the same name. Not good way to use the Name........ Also in looking at and searching the project I could not find the requirement for the BSP_VUSB function. So that is something missing in the setup requirements, not sure where it should go. Thanks for you input on this..... |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 02:37 , Processed in 1.407819 second(s), Total 88, Slave 72 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号