Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: thierrys on April 16, 2009, 05:43:34 AM

Title: crc calculation on a hex file
Post by: thierrys on April 16, 2009, 05:43:34 AM
hello,

I'd like know how flash magic calculs the crc for a lpc9xx on a hex file in cyclic redunbancy check
ex:
:03000000000000FC
:0C002C0078FFE4F6D8FD758107020003A0
:040019007FA07E86C0
:0F001D00EF1F70011E144E600563A00880F222D1
:10000300E4F5A475A5FFF5A063A0FF120019120083
:060013001912001980F231
:00000002FF

the crc for the block 0 : 6EBBF73F

thank you
Title: Re: crc calculation on a hex file
Post by: Andy Ayre on April 16, 2009, 09:32:00 AM
It is a 32-bit CRC with the following polynomial: 0x00400007.

Andy