Slave response frame cannot be received in LIN master mode on S32K314. Based on the S32K388 EVB to learn LIN routines, in the attached routine Master Send Data, Slave Node Receive OK Learn Master Recive Slave node data and discover: 1、Slave Node has responded to Master Send PID, and the oscilloscope can see the data feedback from Slave Node. 2. debug Code, Master Node found that the return value of Lpuart_Lin_Ip_GetStatus() function is not LPUART_LIN_IP_STATUS_RX_OK. 3, debug Code, Lin's callback function LinMasterCallback () has not been into the Not sure which payment configurations are incorrect for that copy of the routine, please help based on the Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Hi@Ryan_xjl
I checked your project, but I can't test it because you are using LPUART0 and the S32K388EVB should not support that port as LIN.
I don't see anything wrong with your configuration, only what I said, LPUART0 is not a LIN port on the S32K388EVB, there is no LIN transceiver. Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Thank you very much for your assistance, the response frame from the Slave Node is currently received and the data is parsed correctly! But found a problem, if the Master continues to send, adhere to a period of time will not be able to receive Salve data, Lpuart_Lin_Ip_GetStatus () return value for LPUART_LIN_IP_STATUS_RX_NO_RESPONSE The Code section of the Continuous Hair Modification is: Debug Code and found that the Master sends a period of time with the status: Master restart can last for a while again after that, not sure if there is a guide that can be given, if you need a modified routine, say Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Hi, my current board does use UART0 as LIN, and there is no problem with LIN Master Send, which means the hardware is OK, as follows Can you share a routine to support LIN Master receive program (support Callback), the routine can be based on RTD is fine! I'm fine with modifying and learning on my own, thanks again Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Hi@Ryan_xjl
If your transmission is normal and you change the following place to TX, then you can enter the callback, the corresponding event should be "LPUART_LIN_IP_TX_COMPLETED".
The attachment is based on the S32K344EVB modification, I can access the callback Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Hi@Ryan_xjl
You need to use an oscilloscope or logic analyzer to see if the data sent by the master is normal and if the slave side is responding.
It feels like the slave side is not responding. Re: S32K314 的 LIN 主站模式下无法接收从站响应帧 Hello, I found a phenomenon, I am not sure if it has anything to do with the Slave device, I have 2 LIN (Slave) devices and 1 LIN simulator. When the LIN Master hardware and the corresponding firmware remain unchanged (the previous routine), the LIN simulator and one of the LIN Slave are normal, the Master receives the data is normal, but the other LIN Slave device has the above phenomenon (running for a period of time, no LIN Slave feedback data), the oscilloscope measurement found that the Master does not send data (frame header), the Master does not send data (frame header). Slave device appears the above phenomenon (running for a period of time can not receive LIN Slave feedback data), oscilloscope measurements found that the Master did not send data (frame header)
記事全体を表示