S32K144 How to make CAN network by CRC module?

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

S32K144 How to make CAN network by CRC module?

1,857 Views
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.

Tags (4)
5 Replies

1,652 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

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

Jiri 

1,652 Views
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 Kudos
Reply

1,652 Views
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,652 Views
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 Kudos
Reply

1,652 Views
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 Kudos
Reply