S32K3 Lin Slave Mode Issue

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

S32K3 Lin Slave Mode Issue

Jump to solution
531 Views
NewbieNerd
Contributor III

Dear S32K3 Team,

I hope this message finds you well.
I am currently facing issues while attempting communication using LIN-LPUART on the S32K311 and would like to request your assistance. Below, I have outlined the issues I am encountering and would greatly appreciate any solutions or guidance you can provide.

1. In master mode, when transmitting LIN data in the response-rx format, Canoe detects an "Incorrect sync delimiter length" error.
1.1.  Despite this, Canoe sends a response, but the LIN IRQ handler detects a framing error, preventing the correct response from being transmitted.

2. I require an example for the slave mode. (RTD Version: SW32K3_RTD_R21-11_3.0.0_P07)
2.1.  After initializing in slave mode and running the program, I observed that the waveform of the LIN bus matches the LPUART-RX pin when a message is sent from Canoe. However, no interrupt occurs, and the IRQ handler is not triggered.

I sincerely hope to receive guidance or solutions regarding these issues.
Thank you very much for your time and assistance.

Best regards,

Tags (1)
0 Kudos
Reply
1 Solution
485 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) this can point to bit timing issue. Be sure bitrate is set similarly. You can measure geenrated signal on TX/RX if it as expected.

2) here are two RTD demos you can refer to, where LPUART is used as LIN Slave
"Lin_Ip_FrameTransfer_S32K344"...  simple application which shows a communication between a Lin Master and a Lin Slave of both Lpuart Ip and Flexio Ip 
- "Lin_Slave_S32K344_Example_DS" ... LINStack example demonstrating the LIN communication between S32K344 Slave and other board Master using unconditional frames.
There is no direct example for S32K311, but you can reuse existed one to create new. For slave mode be sure module interrupt is properly enabled and Auto-detect baudrate feature is properly implemented, as shown in the example and described in  the chapter 3.6.5 Auto-detect baudrate feature of RTD_LIN_43_LPUART_FLEXIO_UM.pdf

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
486 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) this can point to bit timing issue. Be sure bitrate is set similarly. You can measure geenrated signal on TX/RX if it as expected.

2) here are two RTD demos you can refer to, where LPUART is used as LIN Slave
"Lin_Ip_FrameTransfer_S32K344"...  simple application which shows a communication between a Lin Master and a Lin Slave of both Lpuart Ip and Flexio Ip 
- "Lin_Slave_S32K344_Example_DS" ... LINStack example demonstrating the LIN communication between S32K344 Slave and other board Master using unconditional frames.
There is no direct example for S32K311, but you can reuse existed one to create new. For slave mode be sure module interrupt is properly enabled and Auto-detect baudrate feature is properly implemented, as shown in the example and described in  the chapter 3.6.5 Auto-detect baudrate feature of RTD_LIN_43_LPUART_FLEXIO_UM.pdf

BR, Petr

0 Kudos
Reply