When the S32K144 development board uses the LIN module configured with EB29, the initialization state of the STAT register is different from the sample routine state. The main reason is that in the interface Lpuart_Lin_Ip_HwSetTransmitterCmd, Base->CTRL = (Base->CTRL & ~LPUART_CTRL_TE_MASK) | ((enabled? 1UL: 0UL) << LPUART_CTRL_TE_SHIFT); this will cause the TC status in the STAT register to be cleared, resulting in transmission abnormality. Is there any configuration error that may cause this or any related support? Thank you.
I am using the EB29Lin_Lpuart_MasterFrameTransfer_S32K144 example routine.
When you use the S32K144 development board and the EB29 LIN module, you find that the Lpuart_Lin_Ip_HwSetTransmitterCmd function clears the TC (transmission complete) status in the STAT register, causing transmission anomalies. This is not a simple configuration error, but a design behavior of the LPUART LIN driver or the hardware abstraction layer (HAL), which may intentionally reset the status bit when enabling/disabling the transmitter. It is recommended that you consult the S32K144 manual and driver documentation to understand the interaction between the TE and TC bits, and observe the register status through debugging. If TC clearing is the expected behavior, you need to adjust the code logic to adapt to this state. If the problem persists, please contact NXP technical support.