完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我需要创建一个自动增量到十六进制,所以我将创建一个外部软件,它将改变内部的六角。但我想避免所有的进程(重新打开HEX)从MPLAB发送它。我需要用一个点击来完成所有的例程。自动增量+发送十六进制到PIC。所以我有什么方法可以发送动态的HEX文件来选择3?或者我还有别的选择吗?
以上来自于百度翻译 以下为原文 I need to create an auto increment into hex so i will create an external software that it will changes the increntment inside the hex. But also i want to avoid all the process(reopen the hex) from sending it from mplab. I need to make all this routine with one click. AutoIncrement + Send hex to pic. So is there any way which i can send dynamic hex file to pick 3? Or what other options do i have? |
|
相关推荐
5个回答
|
|
我创建了一个简单的软件,它可以自动更新一个要在项目中编译的源文件,以便生成的HEX文件将有一个新的序列号。否则,您可以使用HealMax向项目的十六进制添加一个十六进制数据。在这两种情况下,MPLAB中的“预”和“后生成”动作。走的路。
以上来自于百度翻译 以下为原文 I created a simple software that automatically updated a source file to be compiled along the Project, so that the produced HEX file would have a new serial number. Otherwise, you can use HEXMATE to add a bit of HEX data to your Project's hex. In both cases, "pre" and "post build" actions in MPLAB are the way to go. |
|
|
|
我建议你读一下英特尔HEX FordMaTHTPS://E.WiKiTo.Org/WiKi/IntLeXHEX文件,所有的Microchip编译器都使用这种格式。为了做你想做的,我创建了简单的程序,使用VB6或C语言(但是你可以使用你想要的任何东西)打开文件,把每一行都放在一个Li中。关闭文件。创建一个新文件并写入列表中的每一行,直到到达感兴趣的行。解析该行,找到要更新的字节的位置。还更新校验和。写一行。重复,直到列表结束。关闭文件。
以上来自于百度翻译 以下为原文 I suggest you read up on the Intel Hex format https://en.wikipedia.org/wiki/Intel_HEX the hex files generated by all microchip compilers use this format. To do what you want to do i created simple programs, using either VB6 or C# (but you can use whatever you want) Open the file, put every line in a list. close the file. Create a new file and write each line of the list, until you get to the line of interest. Parse the line, find the position of the bytes you have to update. also update the checksum. Write the line. Repeat, until end of list. Close the file. |
|
|
|
您查看了MPLABX附带的IPE实用程序吗?
以上来自于百度翻译 以下为原文 Have you looked at the IPE utility that comes with MPLABX? |
|
|
|
Qub指的是SqTP,但是它有多灵活呢?在我的申请中,我必须改变几个位置。就像如果我必须用串行20编程单元时,内存位置必须用201202203来更新。我找不到用QTP来做它的方法,我也不会总是按顺序做它。
以上来自于百度翻译 以下为原文 qub refers to SQTP. However how flexible is that? in my application i had to change several locations. like if i had to program the unit with serial 20 the memory locations would have to be updated with 201,202,203. I couldn't find a way to do it with SQTP, also i wouldn't always have to do it sequentially |
|
|
|
前一段时间我们需要并行编程6个板。我们编写了一个短Python脚本来控制6皮切特-3程序员。这个Python脚本并行加载十六进制和闪烁。你可以做类似的工作,写一个Python脚本来修改HEX文件,闪存PIC很容易。可以将所有文件打包在一个.exe文件中。
以上来自于百度翻译 以下为原文 Some time ago we need to program 6 boards in parallel. We wrote a short Python script to control 6 PICKIT-3 programmer. This Python script loads the HEX and flashes in parallel. You may do a similar job, write a Python script to modify the HEX file and flash the PIC is easy. You can pack all files in one .EXE file. |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2037 浏览 8 评论
1957 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2265 浏览 5 评论
788浏览 1评论
680浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
608浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
685浏览 0评论
582浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 11:34 , Processed in 1.919372 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号