完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图将hid_basic u***示例加载到用于PIC32MZ1024EFF100的UART引导加载程序上。UART引导加载程序成功地处理了我正在处理的其他基于串行端口的十六进制文件。但是,hid_basic示例根本不起作用。电路板上的LED只是暂时关闭,示例程序GenericHIDSimpleDemo.exe在尝试连接时找不到电路板。但是,如果我用PICkit编程项目,它工作得很好。有没有人用引导加载程序测试了hid_basic示例,或者知道是什么导致了我的问题?谢谢
以上来自于百度翻译 以下为原文 I'm trying to load the hid_basic u*** example onto the UART bootloader for my PIC32MZ1024EFF100. The UART bootloader works successfully with the other serial port based hex files that I've been working on. However, the hid_basic example does not work at all. The LEDs on the board just stay off and the example program, GenericHIDSimpleDemo.exe can't find the board when trying to connect. If I program the project with the PICkit though, it works just fine. Has anyone tested the hid_basic example with the bootloader or know what could be causing my problem? Thanks |
|
相关推荐
11个回答
|
|
谢谢你的回应,Larry。我试着在DATASTREAM_Close中的if语句之后将代码添加到引导加载程序的datastream_u***_hid.c中,结果还是一样的。这是否消除了引导加载程序中断成为问题根源的可能性?或者,在v1.09中有没有比提供的代码更多的更改,以防止引导加载器中断对上传固件的影响更大?
以上来自于百度翻译 以下为原文 Thanks for the response, Larry. I tried adding the code to the bootloader's datastream_u***_hid.c after the if statement in DATASTREAM_Close and the result is still the same. Does this eliminate the possibility of the bootloader interrupts being the source of the problem? Or are there going to be more changes in v1.09 that will prevent the bootloader interrupts from affecting the uploaded firmware more than the code provided? |
|
|
|
我已经尝试过使用v1.09hid_basic示例以及v1.09引导程序,但是问题仍然存在。至于在调用应用程序之前的断点,我该如何进行呢?在调试模式下运行Bootloader似乎不起作用。
以上来自于百度翻译 以下为原文 I have tried using the v1.09 hid_basic example as well as the v1.09 bootlaoder and the problem still remains. As for the breakpoint right before the app being called, how would I go about doing this? It seems that running the bootloader in debug mode doesn't work. |
|
|
|
引导加载程序应该在调试模式下运行。这是在应用程序之后,事情变得更加复杂。
以上来自于百度翻译 以下为原文 The Bootloader should run in debug mode. It is after going to the App that things get more complicated. |
|
|
|
我用hid_basic示例再次测试了引导加载程序,它似乎运行到了代码行:if(appData.deviceConfigured==true),其中deviceConfigured与引导加载程序组合时为false,但是当它自己运行时则不是。
以上来自于百度翻译 以下为原文 I tested the bootloader with the hid_basic example again and it seems to run up to the code line: if(appData.deviceConfigured == true) where the deviceConfigured is false when combined with the bootloader, but not when it runs on its own. |
|
|
|
由微芯片配置的应用程序不会单独运行。
以上来自于百度翻译 以下为原文 The App as configured by microchip will not run stand alone. |
|
|
|
我修改了应用程序以正确地为我的设备工作,所以它确实适用于所提供的应用程序。顺便说一下,我尝试再次使用Bootloader调试模式,它将抱怨许多Bootloader函数的多个定义。
以上来自于百度翻译 以下为原文 I modified the app to work properly for my device, so it definitely works with the provided application. By the way, I tried using the debug mode with the bootloader again, and it will complain about multiple definitions from many bootloader functions. |
|
|
|
我的靴子独立工作,调试独立。如果你不能,那就有问题了。
以上来自于百度翻译 以下为原文 My Boot works stand alone and debugs standalone. There is a problem if you can't. |
|
|
|
我已经添加了一个心跳LED和一个串口输出到应用程序。串行端口将输出任何发生的事件以及一些额外的输出来检查设备的配置状况。当使用引导加载器测试应用程序时,心跳LED和串行端口正常工作。但是,如前所述,设备永远不能正常工作。算了。此外,似乎从未检测到USB设备事件功率。我附上了我的输出图片。什么会引起这个问题?
以上来自于百度翻译 以下为原文 I have added a heartbeat LED and a serial port output to the application. The serial port will output whatever events occur along with a few additional outputs to check the condition of the device's configuration. When testing the application with the bootloader, the heartbeat LED and the serial port operate properly. However, as mentioned earlier, the device never gets configured. Also, it seems that the USB device event power detected is never reached. I am attaching a picture of my outputs. What could be causing this issue? |
|
|
|
你好,你用哪个板:你自己的板还是微芯片板?当做
以上来自于百度翻译 以下为原文 Hi, Which board do you use : your own board or a Microchip board ? Regards |
|
|
|
您好,首先在PIC32MZ EF启动器工具包上测试开箱即用的示例,然后确认它按预期工作后,就可以轻松地移植它并检查任何问题。
以上来自于百度翻译 以下为原文 Hi, It might be useful for you to test first the out of the box example on the PIC32MZ EF starter kit and then once you confirm it works as expected you can easily port it and check any issue. Regards |
|
|
|
我用芯片支持解决了这个问题。结果证明,USART引导加载器的配置默认禁用了主振荡器,而USB需要12/24MHz的主振荡器。
以上来自于百度翻译 以下为原文 I solved the problem with Microchip Support. It turned out that the USART bootloader's configuration had the primary oscillator disabled by default and the USB requires the primary oscillator at 12/24 MHz. Thanks to everyone for the assistance |
|
|
|
只有小组成员才能发言,加入小组>>
5170 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
736浏览 1评论
619浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
507浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
633浏览 0评论
530浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 12:16 , Processed in 1.379803 second(s), Total 98, Slave 82 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号