Fill in a random size template in Intel hex file

I tried to fill using Srecord , then how can I write my own algorithm to do what I want?

I'm not quite sure how to determine what needs to be filled, and then how I will continue to do the filling that is needed. And in the event that someone can answer the same question for a Tektronix file, it will be just as good or better than doing what I ask in the Intel hex file.

+4
source share
2 answers

The data-receptor-generator can take several bytes as parameters. The following will fill in bytes 16 through 31 of C2AF00C2AF00 ...

srec_cat -Output -Intel -generate 0x10 0x20 -repeat-data 0xC2 0xAF 0x00 

Align with your actual input or other generators to fill in the corresponding ranges.

+5
source

You can have full control over the creation of an Intel Hex file using some special library, for example. with this IntelHex Python library

+3
source

All Articles