s32k design studio example CRC /How to make a Fault(error)?

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

s32k design studio example CRC /How to make a Fault(error)?

1,341 Views
tkdwofl
Contributor III

Hello 

i don't speak english well.

Thanks for taking my question.

i want to make a CRC error. because i want to check CRC function in Safety mechanism.

I can see a example in S32k14x EAR SDK(crc_checksum_s32k144)

i was curious when looking at the example.

pastedImage_4.png

pastedImage_3.png

1. what is input? (How to make result 0xB532U)

2. Result is defined : 0xB532U  why RESULT_CRC16_CCITT is 0x532? i think that Result is calculated CRC result value. 

3. How to make CRC error?

Thanks for taking my question.

 

1 Reply

1,001 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the input is array of 32bit integers stored in input_data.c source code:

pastedImage_1.png

The result is pre-calculated result of input data used for comparison with result form hardware CRC module based on input data. If you change value in input data array - CRC module returns different CRC number and you got CRC error in this example and Red LED will lite. 

Hope it helps. 

Jiri