MC33771C CRC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,300件の閲覧回数
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,291件の閲覧回数
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,925件の閲覧回数
Patrick_Pavle
Contributor III

Hi @TomasVaverka 


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

0 件の賞賛
返信
2,292件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Alessandro,

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

BR, Tomas

0 件の賞賛
返信
2,279件の閲覧回数
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,276件の閲覧回数
alessandro_piazza
Contributor II

Hi Tomas, I'm sorry it was correct!

 

0 件の賞賛
返信