S32K116 LIN timeout problem

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

S32K116 LIN timeout problem

693 Views
fcatkaya
Contributor I

Hi,

I faces a timeout problem in my LIN slave application that I use s32k116 MCU. I am using LPUART1 for LIN communication and when it responses to  a LIN header, after sending first data byte, it stops sending but "LIN_TX_COMPLETED" event does not occur. I have doupts on the LIN library because when I debug it , it goes only once to the  "LPUART_Putchar" function. I am sending response to the header inside the LIN callback function. Can you please help me!

fcatkaya_0-1638521330701.png

 

0 Kudos
1 Reply

660 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

do not manually send characters, use driver api. Just prepare response buffer and use LIN_DRV_SendFrameData as it is shown in example. Checksum is calculated within interrupt handler.

BR, Petr

0 Kudos