1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,去年,我用Microchip的和声自动构建提供的引导加载程序,它是USB HID引导加载程序。它工作得很好。然而,由于严重的硬盘崩溃,我不得不重新安装操作系统和所有的软件,当我重新编译并上传相同的代码到微控制器时,USB甚至根本没有被检测到,并且在PC端没有检测活动。OTLoad的工作原理:微控制器:PIC32 MZ2048 EFH064(所有D+和D线都是正确的),MPLAB和谐1.07.01MPLAB XC32 1.40MPLAB IDV3.40(截至2016年5月),我仔细检查了其余的和声配置文件,它没有差别,但是,当我不在时,它不再工作了。重新编译并上传。使用以前安装的旧HEX文件,我成功地检测到了。我有什么遗漏了吗?振荡器的设置是正确的,并且如果整个事件都没有被检测到,那么在USB初始化代码中一定会遗漏某些东西,或者振荡器设置可能不正确。如果需要,我会提供更多的细节。期待大家的意见。
以上来自于百度翻译 以下为原文 Hello there, Around last year, I had used Microchip's HARMony to automatically build the provided bootloader, which is the USB HID Bootloader. It works very well. However, due to a severe hard disk crash, I had to reinstall the OS and all the software, and when I recompile and upload the same code to the microcontroller, the USB does not even get detected at all, and there is no detection activity at the PC side. Here is the system details when the USB HID bootloader works: Microcontroller: PIC32MZ2048EFH064 (all the D+ and D- lines are correct as it works before) MPLAB Harmony 1.07.01 MPLAB XC32 1.40 MPLAB IDE v3.40 (as of May 2016) I double checked the rest of the Harmony configuration file, and it has no differences, however, it doesn't work again when I recompile it and upload it. Using the old HEX file I had from the previous installation, I managed to get it detected. Is there something I left out there? The oscillator settings are correct and it seems that if the whole thing is not even detected, something must be missing in the USB initialization codes or the oscillator settings might be incorrect. I will furnish you with more details if requested. Looking forward to the opinions. |
|
相关推荐
7个回答
|
|
嗨,当你说“我已经使用Microchip的和声自动构建提供的引导加载程序,它是USB HID引导加载程序”时,它是用USB设备配置提供的“应用程序/Bootloader /Basic”的和声吗?如果是的话,它应该工作没有任何问题。
以上来自于百度翻译 以下为原文 Hi, When you say "I had used Microchip's Harmony to automatically build the provided bootloader, which is the USB HID Bootloader" Is it the harmony provided "apps/bootloader/basic" with u*** device configuration? if yes then it should work without any problems. |
|
|
|
嘿,是的,去年我用了他们的例子,没有问题。只是现在我不能让它工作。我已经检查了振荡器设置,一切都好。我开始怀疑PIC32 MZ中的USB模块没有在USB堆栈中被打开。
以上来自于百度翻译 以下为原文 Hey there, Yes, I have used their examples last year without problems. Only nowadays I can't get it to work at all. I have checked around with the oscillator settings and all are okay. I am begining to suspect that the USB module in the PIC32MZ hasn't been switched on in the USB stack. |
|
|
|
一个更新:我调试了这个东西,我发现,在“DATASERAMOPEN”函数中,它进入“USB打开”(我在其他地方,当我回到家时,我将给出函数的确切名称),不做任何事情,因此它根本没有启动USB堆栈。(当我在SysStask任务中手动添加USB打开时,有一个检测,这意味着振荡器设置和USB堆栈配置都是正确的)。这是编译错误吗?顺便说一下,我的XC32是版本1.42。
以上来自于百度翻译 以下为原文 An update: I debugged the thing and I found out that in the "Datastream_Open" function it goes into the "USB Open" (as I'm elsewhere I will give the exact name of the function when I'm back home), doesn't do anything and hence it didn't even start the USB stack at all! (when I manually added the USB open in the SYS_Tasks function , there's a detection, which means that the oscillator settings and the USB stack configuration are all correct). Is this a compilation bug? My XC32 is version 1.42 by the way. |
|
|
|
自V1.07以来,Bootloader已被修复。你可以试试和声V1.11。V1.42不是1.07的推荐编译器。
以上来自于百度翻译 以下为原文 The bootloader has been fixed up since V1.07. You could try harmony V1.11. V1.42 is not the recommended compiler for the 1.07. |
|
|
|
谢谢你给我一个很好的提示-我要在我的书桌前检查一下!我还将在2016年5月下载我的XC32旧拷贝。:)
以上来自于百度翻译 以下为原文 Thanks for dropping a good hint - I'm going to check it back once I'm in front of my desk! :) I'll also dig out my old copy of the XC32 downloaded in May 2016. :) |
|
|
|
所有旧编译器版本都可用。转到编译器页面并单击存档。和声自述应该说明测试了什么版本。
以上来自于百度翻译 以下为原文 All the old compiler versions are available. Go to the compiler page and click Archive. The harmony README should say what version it was tested with. |
|
|
|
谢谢你的小费。当我把系统连接到PC上时,Windows做了一个令人满意的曲调。我将继续使用XC32 1.40和和声V1.11。:)
以上来自于百度翻译 以下为原文 NKurzman - Thanks for the tip. Windows made a satisfying tune when I connect the system to the PC now. I will continue using the XC32 1.40 and Harmony v1.11 for now. :) |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 09:26 , Processed in 1.334381 second(s), Total 57, Slave 51 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号