I am test loop back on that code, that present in S32 Design Stdio software.
Slave is not able to generate the header itself, so testing in the loopback make no sense, I think.
I am just want to understand the working of LIN protocol so try to test loop back, in that i am transmitting the header by master and just see the data transmission flag is set or not but it is not set.In transmission and receiving side I am taking same ID.
Thank you for helping.
if you are using the MPC5748G EVB, then note the LIN transceiver is not powered from the EVB, thus the transmission will not work, because of bit error (RX pin does not see the same signal that is on TX pin).
So connect 12V to the LIN connector (P11.3 or P9.3)) to power the transceiver. This enables the LIN transceiver to loop TX back to RX so entire transmit frames can be issued successfully.
In loop back mode i am able to transmit the data and Data Transfer Flag is set, but in receiver side before Data Reviver Flag is getting set LIN bus reached in idle state because of OCF bit of LINESR register. Please help me out to resolve that.
try to clear LINTCSR[IOT] bit, so LIN state machine does not reset to Idle on timeout.
How to change the baud rate for LIN protocol.
Retrieving data ...