我建议你读一下英特尔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.
我建议你读一下英特尔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.
举报