This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question for TMS320F28035 LIN application

As the following shows two frames, when 28035(slave) transmits frame 1 or frame 2, the checksum in LIN bus (captured by oscilloscope) is correct.

But when 28035(slave) transmits frame 1 and frame 2 alternately, the checksum are incorrect, for frame 1, the checksum is 0x3C (captured by oscilloscope), but not 0x3B, and for frame 2, the checksum is 0xFB (captured by oscilloscope), but not 0xFC.

Why that ? I do not know what is wrong.

Frame 1:

PID: 0xC4
DATA: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF

checksum = 0xFF-0xC4 = 0x3B = 0011 1011b

Frame 2 :

PID:0x03
DATA;0x01 0x01 0x01 0x01 0x01 0x01 0x01 0xF8

checksum = 0xFF-0x03 = 0xFC = 1111 1100b