MC33771C CRC

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

MC33771C CRC

跳至解决方案
2,298 次查看
alessandro_piazza
Contributor II

Hi, can anyone send me sample code for crc calculation? I have some problem in generating correct crc...

0 项奖励
回复
1 解答
2,289 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Alessandro,

Attached you can find the CRC calculation software implemented in our KL25Z MCU.

BR, Tomas

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,923 次查看
Patrick_Pavle
Contributor III

Hi @TomasVaverka 


Why is 0x42 used as the seed value in the code? Shouldn´t it be 0FF? 

0 项奖励
回复
2,290 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Alessandro,

Attached you can find the CRC calculation software implemented in our KL25Z MCU.

BR, Tomas

0 项奖励
回复
2,277 次查看
alessandro_piazza
Contributor II

Hi Tomas, Thanks!

I've just tried it but it doesn't function (I used the sample messages on the datasheet to test crc result).

I think they use a different polynomial (0x2F), also seed is different.

 

0 项奖励
回复
2,274 次查看
alessandro_piazza
Contributor II

Hi Tomas, I'm sorry it was correct!

 

0 项奖励
回复