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:
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,
解決済! 解決策の投稿を見る。
Hello Daniel,
I hope this message finds you well.
I wanted to share that I have successfully resolved all the issues we discussed. Based on your valuable feedback, I have ceased all attempts to write to the registers and have focused on processing the received PID in the Linif.c file. Now, the system correctly handles whether to send or receive a response.
Additionally, I integrated the message simulation from CANoe, which allowed me to successfully read the LIN messages sent by CANoe and the data transmitted by the MCU as a slave on the debugger.
Thank you very much for your support and guidance throughout this process. I truly appreciate it.
Best wishes,
Dongxun
Hi @dongxun,
What NXP drivers / LIN stack version do you use?
Regards,
Daniel
Hello Daniel,
I hope this message finds you well.
I wanted to share that I have successfully resolved all the issues we discussed. Based on your valuable feedback, I have ceased all attempts to write to the registers and have focused on processing the received PID in the Linif.c file. Now, the system correctly handles whether to send or receive a response.
Additionally, I integrated the message simulation from CANoe, which allowed me to successfully read the LIN messages sent by CANoe and the data transmitted by the MCU as a slave on the debugger.
Thank you very much for your support and guidance throughout this process. I truly appreciate it.
Best wishes,
Dongxun