天道酬勤,学无止境

hex-file

how to read non-zero part of intelhex file in python using IntelHex package

I'm trying to read part hex data from an intelhex file using Intelhex package of python 3.6. Using following code I opened the file and tried to convert to dictionary if it helps. ih = IntelHex("data.hex") mydict = ih.todict() now I have an address startAddress = some value I want to read stored data starting from $startAddress delimited to the zero value. What's the best way to perform that?

2022-02-16 04:44:35    分类:问答    python   python-3.x   hex   hex-file