完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
背景:PIC32 MZ2048 EFH100,和谐V2.05,XC32 V2.05.I我想做的是简单的概念,但原来是相当困难的,虽然效益显然是巨大的我。我想添加一个嵌入式网页,模拟统一的引导加载程序应用程序。这样做的原因是我们的系统包含一个低级别的模拟板通过RS-485连接,这将允许整个设备远程升级。该板包含一个引导加载程序,主板与一个UDP引导加载程序(Live Update)完美地结合在一起。目前,我可以把命令发送到Bootloader模式,擦除Flash,得到Bootloader版本,然后跳转到应用程序。编程和验证阶段是另一回事。您可能知道,十六进制文件中的每一行都是以冒号开头的记录。我正在努力解决的问题是,我卸载了很多工作客户端,即让JavaScript加载文件,解析它,转换ASCII到HEX,运行CRC,然后简单地发送可以直接中继到模拟板的消息,或者做很多服务器端,比如MD5 Calc。举例说明。我倾向于前者,因为在HEX文件中有几千个记录。编辑:叹息……我可能会被后者所困扰。这是因为我无论如何都要发送一个字符串,从而破坏了做它的一个主要原因。
以上来自于百度翻译 以下为原文 Background: PIC32MZ2048EFH100, HARMony v2.05, XC32 v2.05. What I'm trying to do is simple in concept, but turning out to be quite difficult, though the benefit is obviously huge to me. I would like to add an embedded webpage that emulates the Unified Bootloader Application. The reason for this is that our system contains a lower level analog board connected over RS-485 and this would allow the entire device to be upgraded remotely. This board contains a bootloader itself and the main board works perfectly with a UDP bootloader (live update). Currently, I can send commands down to throw it into bootloader mode, erase the flash, get the bootloader version, and jump to the application. The programming and verify phases are another matter. As you probably know, each line in a hex file is a record that starts with a colon. The question I'm struggling with is do I offload a lot of the work client side, i.e. have the javascript load the file, parse it, convert the ascii to hex, run the CRC, and simply send down messages that can be directly relayed to the analog board, or do a lot of this server side, like the MD5 calculation example. I'm leaning towards the former, as there are several thousand records in the hex file. Edit: Sigh...I may be stuck with the latter. This is because I'll have to send a string down anyway, thus defeating a major reason to do it. |
|
相关推荐
2个回答
|
|
从文本到HEX(二进制)的HIFE转换是微不足道的,所以它不是一个因素。我不会选择从目标固件卸载CRC校验或任何完整性验证。请考虑它的SaffER在PIC固件中做到这一点,这样您就可以捕获TCP/IP通信期间的任何错误。/HTTPS协议主要是面向文本的(URL和参数)。所以上传HEX文件的线条将比原始HEX(二进制)更好。只是我的2美分…最好的。
以上来自于百度翻译 以下为原文 Hi The convertion from text to hex (binary) is quite trivial so its not a factor. I would not choose to offload the CRC check, or any integrity validation, from the target firmware. Think its saffer to do that in the PIC firmware so you can trap any errors during the tcp/ip communication. OTOH the http/https protocol is mostly text oriented (url and arguments). So uploading the lines of the HEX file will fit better than raw hex (binary). Just my 2 cents... Best regards Jorge |
|
|
|
问题是引导加载程序的大小。TCP?IP和HTTP将成为一个大的引导程序。一个选项是将主应用程序中的引导加载数据保存到Flash的一半,或者是外部Flash。然后引导引导程序运行它。
以上来自于百度翻译 以下为原文 The Issue will be the Size of the Bootloader. TCP?IP and HTTP whould make for a big Bootloader. One Option would be to save the Bootload data in the Main application to half the Flash, or an external flash. Then have the Bootloader run off that. |
|
|
|
只有小组成员才能发言,加入小组>>
5189 浏览 9 评论
2009 浏览 8 评论
1933 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3181 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2232 浏览 5 评论
746浏览 1评论
632浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
517浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
644浏览 0评论
544浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 20:43 , Processed in 1.195696 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号