Cannot verify the calculated CRC
Some prior information, I'm using a PIC16LF18877.
The CRC calculation is configured as follow:
- CRC polynomial PLEN = 16 bits (polynom 0x1021).
- Data: DLEN = 16 bits, ACCM = 1, SHIFTM = shift right.
- SCAN module is in concurrent mode, interrupts are delayed by scan.
I created a python script to verify the checksum calculated by the PIC. With it I managed to have the same result as the example 11-1 from the datasheet (page 186), so I'm sure about the algorithm. But then, when trying to adapt it to the program hex file (and the right configuration), I cant' find the same result. My guess is that my entry data is wrong, but I can't find a documentation that explain how the data is sent the the CRC module. Little endian, 16-bits packets, …?
I hope you guys can help me with some leads
Have a nice day