S32K144_CRC-16-IBM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144_CRC-16-IBM

2,359 次查看
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 */
标签 (2)
标记 (3)
0 项奖励
回复
1 回复

2,043 次查看
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 项奖励
回复