i am working on s32k324 MCU where i'm tring to commnucation with slave Via Lin protocol.and i am using PLIN tool as slave for data transmit and receive but i'm facing issue in receving data in my board. if anybody have example code for transimt and receive both please share me.
Hi,
there are two RTD demos you can refer to, where LPUART is used as LIN Master
- "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. But it does not show master receive, however can be modified if needed.
- "Lin_Master_S32K344_Example_DS" ... LINStack example demonstrating the LIN communication between S32K344 Master and other board/tool Slave using unconditional frames.
If looking for baremetal code, maybe below one can be useful;
https://community.nxp.com/t5/S32K/S32K144-LIN-bus/m-p/818963
BR, Petr