• AVR Freaks

Cannot verify the calculated CRC

New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2020/06/10 06:24:50
  • Location: 0
  • Status: offline
2020/07/06 01:31:46 (permalink)

Cannot verify the calculated CRC

Hi everyone,
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

0 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5