Checksum algorithm

Thread Starter

Fang

Joined Dec 5, 2011
3
Hello,
Which checksum algorithm has been used for this HEX data?
HEFF
H10000000000000000000000000000000000000000FF

H4B3C763071B
ECED7F0A181399270FAD1BA76D914D9F608B6C6FE7FD838DF3F9A4 <---- checksum
CheckSum8 Modulo 256 = 5B
CheckSum8 2s Complement = A5
I wonder why checksum is equal A4?
Thank you.
This hex file for mpc561 /32 bit controller/
 

Thread Starter

Fang

Joined Dec 5, 2011
3
Hello,
This is unknown format, which I would like to convert to Intel HEX.
HEFF <------- beginning of file.
H8323439383537372D3031F7 <---- Title
H341343A4534285632292028434D412920322E30204175746F2045726173652056657273696F6E2028576173682042 <----- description /in ASCII code/
H366696C65292021212121596F75206D75737420776169742032206D696E75746573206166746572207761736820FB
H366696C6520697320666C617368656421212121E8
H10000000000000000000000000000000000000000FF
H90000000000E6D3140000000032
H50118E6
00005555AAAA00000000008C1EC097
H4000C40FFB4
H4004C34007F
010005000000FF7023F40014000A000A0001000100010014001E16
011800030019000A0001000100010001000100080008000A00039E
0130000A000A000A0003000A0014003C000100000005002A00190A
014800010001000100000000FFFF000003E80101010101000000C5
01600027002E008D139400000001008D139400000001008C0164EE
0178008C016C008D11D8008C017C0080000080B700B7000018ABDD
019018AF00004080000000076B6E056C0405260640000000000021
01A80B0C0D0E0F000028FFFE00000A000000FF705FB01400000054
01C0FF705FC208000000FF7060100A000000FF7060220C000000C0
...............................................................................................................................
654003E803E803E80000000003E803E80000008D13BC008D13C8FF
6558008D14E8B9
H6011AE4
HB15EA
HCFF <---- End of file
H1, H4, H5, H6, H9, HB are unknown HEX records .....
 

WBahn

Joined Mar 31, 2012
30,088
It's hard to convert a file from another format if you don't know what that other format is. Perhaps with enough experimenting you can identify the essential information and simply ignore the rest.
 

WBahn

Joined Mar 31, 2012
30,088
Do you know what is the reason to use 1's complement ? Intel HEX use 2's complement.
How can we possibly tell you why the designer of an unknown file format made a particular decision regarding the file format they developed?

This would be similar to me asking you why my car has a spherical gear shift knob when an old-model Ford has more of an ellipsoid-shaped knob.
 
Top