Author Topic: crc calculation on a hex file  (Read 3956 times)

thierrys

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
crc calculation on a hex file
« 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: crc calculation on a hex file
« Reply #1 on: April 16, 2009, 09:32:00 am »
It is a 32-bit CRC with the following polynomial: 0x00400007.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com