AnsweredAssumed Answered

S32K144_CRC-16-IBM

Question asked by KWAK D.Y on Jul 9, 2018
Latest reply on Jul 10, 2018 by Jiri Kral

I would like to modify the CRC example code provided by the S32 DS.

Example code is "CCITT 16 bits standard" but I have to use  "CRC-16-IBM"

Which part should I modify?

Can you provide a fix code?
The example code is "crc_checksum_s32k144" in the S32 design studio.
- .CRC-16-CCITT (x16 + x12 + x5 + 1)

- .CRC-16-IBM (x16 + x15 + x2 + 1)

 In example code
 /*!< CRC Polynomial, MSBit first.<br/>
 *   Example polynomial: 0x1021U = 1_0000_0010_0001 = x^12+x^5+1 */

Outcomes