S32K144 How to make CAN network by CRC module?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 How to make CAN network by CRC module?

1,265件の閲覧回数
tkdwofl
Contributor III

hi!!!

i used s32k144 Design studio.

Is the CAN communication applied using the CRC module?

If it is incorrect. How to make CAN network by CRC?

Thank you for providing the example code.

タグ(4)
5 返答(返信)

1,060件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

the FlexCAN module counts CRC by itself. FlexCAN is fully supporting ISO 11898-1 standard. 

Jiri 

1,060件の閲覧回数
tkdwofl
Contributor III


Can I check the code of the FlexCAN module itself to calculate the CRC? (For example, a Header file, a predefined CRC value.)

0 件の賞賛

1,060件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

the CRC is done by hardware itself. You can check the  CANx->CRCR (chapter 53.4.2.14 in Reference Manual) register or capture CRC on oscilloscope.  

Jiri

1,060件の閲覧回数
tkdwofl
Contributor III

OK i see.

but i want to make a fault on CRC with CAN.

How to make a fault CRC within CAN?

Please help me with my question.

Thanks..

0 件の賞賛

1,060件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm afraid that the only possibility how to inject CAN CRC error is modify physical layer - for example very short line drop affecting couple bits in payload. 

Jiri

0 件の賞賛