Other Parts Discussed in Thread: HALCOGEN
Hi,
I have 2, hopefully, short questions on the CRC module.
1. Am I right in saying the Polynomial cannot be changed?
2. I am trying to get the CRC module working in FULL_CPU mode on blocks of data of different lengths, so a byte wise CRC would seem to be the best way to go. When I look at the HalCoGen generated code the crcSignGen function takes as a parameter a pointer to a structure that contains a pointer to 64 bit data.
In order to do a CRC on 8 bit data do I have to load each byte in turn into the SIGREGL1 register or do I concatenate the bytes into a 64 bit variable, blanking whatever is left over, and operate it as a 64 bit? I have tried both ways and can't get the results to tie up with some online calculators.
Regards
Andy
