完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我从微芯片下载了Bootloader示例项目。我已经编辑了一个硬件初始化文件以与MyPIC24FJ256GA106一起工作。我已经将引导加载程序加载到MyPIC24FJ256GA106上。这一切都工作得很好。我采用了led的示例项目,并将其加载到我的PIC24FJ256GA106上,它也工作得很好。当我尝试执行引导加载时,总会出现错误“引导加载超时:发现/握手失败,在指定的超时(xxxms)之前,没有收到响应“#”设备查询命令的命令确认”。但是,从通信通道接收到y个字节“我想这是因为我的引导加载程序没有正确地回复,并且我设置UART不正确。我没有对示例led项目进行任何更改,我只编辑了ex_uart项目,以使用myPIC24FJ256GA106进行适当的配置。我主要调用UART_INIT,并更改了UART_Reset的管脚。我正在附加一个带有UART设置的文件(我还将UART_MODULE_NUM设置为1)。有人能发现问题吗?
以上来自于百度翻译 以下为原文 Hello, I have downloaded the bootloader example projects from Microchip here. I have edited one of the hardware initalization files to work with my PIC24FJ256GA106. I have loaded the bootloader onto my PIC24FJ256GA106. This all works fine. I have taken the led example project and loaded this onto my PIC24FJ256GA106 and it works fine as well. My issue come when I try to do a bootload I always get the error "Timeout on bootload: discovery/handshake failure, did not receive command acknowledgement in response to '#' device query command before the specified timeout (xxxms). However, y bytes were received from the communications channel" I assume this is because my bootloader is not replying properly and that I have set up the UART incorrectly. I have not made any changes to the example led project, I have only edited the ex_uart project to have a "proper" configuration with my PIC24FJ256GA106. In main I call UART_INIT and I changed the pins for UART_Reset. I am attaching a file with my UART setup (I also set the UART_MODULE_NUM to 1 as well). Can anyone spot any issues? Attachment(s) uartSetup.txt (2.19 KB) - downloaded 202 times |
|
相关推荐
3个回答
|
|
您需要但尚未显示或提及的PPS映射的UART到引脚。
以上来自于百度翻译 以下为原文 You need but haven't shown or mentioned PPS mapping of the UART to pins. |
|
|
|
我想这就是我缺乏经验的地方,因为我不知道那是什么。我会调查这个问题的,我会给你回复的。
以上来自于百度翻译 以下为原文 I suppose this is where my inexperience shows, as I do not know what that is. I will be looking into this and I will get back to you. |
|
|
|
我的引脚设置正确,我可以通过Saleae逻辑分析器验证我的PIC是否正确接收blob文件。但是,我无法将blob写到内存中得到错误-9。通信错误:远程节点在blob偏移量10707(10707)附近因错误-9而中止,读回验证不匹配。所有的编程都已完成,但现有的引导加载程序中的数据与上传图像中的引导加载程序副本不匹配。确保您发送了一个正确的.HEX/.BUB文件,该文件与安装的引导加载程序完全匹配。应用程序必须使用_merge.s和_merge.gld文件编译,这两个文件是在最初构建和部署引导加载程序时生成的。对此有何想法?
以上来自于百度翻译 以下为原文 My pins are set correctly and I can verify through a Saleae logic analyzer that my PIC is receiving the blob file correctly. I am however not able to write the blob to memory getting error -9. Communications error: remote node aborted with error -9 around blob offset 10707 (of 10707) Read-back verification mismatch. All programming completed, but data in the existing bootloader does not match the bootloader copy in the uploaded image. Make sure you transmitted a correct .hex/.blob file that exactly matches and was built for the installed bootloader. The Application must be compiled with _merge.s and _merge.gld files generated when the bootloader was originally built and deployed. Any thoughts on this? |
|
|
|
只有小组成员才能发言,加入小组>>
5276 浏览 9 评论
2051 浏览 8 评论
1965 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3227 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2274 浏览 5 评论
809浏览 1评论
704浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
639浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
698浏览 0评论
595浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-7 07:58 , Processed in 1.344224 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号