I am trying to program a bootloader to calculate the CRC of an app file stored in flash using the CRCCU on the G55. I am hoping to use the CRC to compare it within the bootloader to a known CRC to check for transmission errors. I was hoping to get the known CRC value from srec_cat, but it's not giving me the same value as the CRCCU is.
I was hoping someone could help me with a couple questions:
1. Does srec_cat calculate the checksum using only the data from the hex file, or does it include the addresses and 2's compliments at the start and end of each line?
2. Does srec_cat use one of the polynomials available in the peripheral to calculate the CRC, or does it use some other method?
Just trying to narrow down where my problem might be.