Hi,
I hope this message finds you well. I am currently working on LIN communication testing using the S32K312NHT0MPAST demo board (with EB28) and have encountered a few challenges that I would greatly appreciate your guidance on.
First, when configuring the MCU as a LIN Master, the measured bitrate on the oscilloscope does not match the configured baud rate. Second, in Slave mode (attempting to receive a 0x10 message from CANoe), I noticed the following issues:
- The MCU triggers interrupts upon detecting RXD signals, but no explicit Slave-mode APIs are available in Lin.c or Lin_ipw.c. Could you confirm if this is an expected implementation?
- After enabling the BRK13 register (to detect the 13-bit Break field sent by CANoe), the MCU enters the LPUART_LIN_IP_NODE_STATE_RECV_SYNC state but fails to read the sync byte 0x55 from the DATA register, causing the program to halt.
- Enabling the RX FIFO and setting the WATER register to 1 allowed data retrieval from the DATA register, but the received value is incorrect. Manual register adjustments based on the chip manual have not resolved this.
Given the transceiver’s 220pF capacitor (resembling a Slave configuration), I suspect a potential hardware/software mismatch. Could you advise on the root cause of the sync byte misalignment, missing Slave APIs, or any critical register settings I may have overlooked?
Thank you sincerely for your time and expertise. Any insights or documentation references would be invaluable.
Best regards,