S32K144_CRC-16-IBM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144_CRC-16-IBM

1,112 Views
kwakd_y
Contributor III

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 */
Labels (2)
Tags (3)
0 Kudos
1 Reply

796 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

you can modify processor expert CRC module (double click to crc1:crc in components)  to met your needs: 

pastedImage_1.png

Jiri

0 Kudos