MC33771C CRC

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

MC33771C CRC

Jump to solution
2,293 Views
alessandro_piazza
Contributor II

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

0 Kudos
Reply
1 Solution
2,284 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Alessandro,

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

BR, Tomas

View solution in original post

0 Kudos
Reply
4 Replies
1,918 Views
Patrick_Pavle
Contributor III

Hi @TomasVaverka 


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

0 Kudos
Reply
2,285 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Alessandro,

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

BR, Tomas

0 Kudos
Reply
2,272 Views
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 Kudos
Reply
2,269 Views
alessandro_piazza
Contributor II

Hi Tomas, I'm sorry it was correct!

 

0 Kudos
Reply