|
BrianG (Military)
17 Mar 03 7:05
Hi folks, We have an old product which uses the 87C196 microcontroller and I need to program some more blank parts for spares. The problem is I can't be sure of the correct hex file format to setup on our Data I-O 2900 programmer for reading in the file from disk.
The file header looks like this:
:02203800F63F71 :01201800FFC8
which is very similar to Intel Hex-32, but not exactly as the second line seems to be missing two characters for the extended address.
Does anyone out there have any ideas?
melone (Electrical)
17 Mar 03 10:08
If I remember correctly, you don't define the address on every line. Actually, you only need to define it every 5 or 10 lines. The second line tells you the offset from the last fully defined address. Therfore, it should increment by the number of bytes. I would have to look through some of my old spreadsheets to be 100% sure, but I am very confident that this is how it can work (~99.999%). The advantage of that type of format is that it takes up less space.
字串7
melone (Electrical)
17 Mar 03 10:12
Try the Intel MSC Hex file format on your DataIO.
melone (Electrical)
17 Mar 03 11:18
:AABBBBCCDD...EE
AA = Number of data bytes (DD) BBBB = Offset from prefix CC = Prefix load (02 - load prefix, 00 - no load) DD.. = Data (variable length) EE = Line checksum
Hopefully, that makes sense....
melone (Electrical)
17 Mar 03 13:04
http://margo.student.utwente.nl/el/misc/intl_hex.htm
cbarn24050 (Industrial)
18 Mar 03 8:22
Hi, they are intel hex lines, they are both data records.
melone (Electrical)
18 Mar 03 9:49
Exactly. The first one has 2 data bytes, while the second has 1 data byte.
字串4
(Click:)
|