S32K3 Lin Slave Mode Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K3 Lin Slave Mode Issue

ソリューションへジャンプ
1,406件の閲覧回数
NewbieNerd
Contributor IV

Dear S32K3 Team,

I hope this message finds you well.
I am currently facing issues while attempting communication using LIN-LPUART on the S32K311 and would like to request your assistance. Below, I have outlined the issues I am encountering and would greatly appreciate any solutions or guidance you can provide.

1. In master mode, when transmitting LIN data in the response-rx format, Canoe detects an "Incorrect sync delimiter length" error.
1.1.  Despite this, Canoe sends a response, but the LIN IRQ handler detects a framing error, preventing the correct response from being transmitted.

2. I require an example for the slave mode. (RTD Version: SW32K3_RTD_R21-11_3.0.0_P07)
2.1.  After initializing in slave mode and running the program, I observed that the waveform of the LIN bus matches the LPUART-RX pin when a message is sent from Canoe. However, no interrupt occurs, and the IRQ handler is not triggered.

I sincerely hope to receive guidance or solutions regarding these issues.
Thank you very much for your time and assistance.

Best regards,

タグ(1)
0 件の賞賛
返信
1 解決策
1,360件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) this can point to bit timing issue. Be sure bitrate is set similarly. You can measure geenrated signal on TX/RX if it as expected.

2) here are two RTD demos you can refer to, where LPUART is used as LIN Slave
"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 
- "Lin_Slave_S32K344_Example_DS" ... LINStack example demonstrating the LIN communication between S32K344 Slave and other board Master using unconditional frames.
There is no direct example for S32K311, but you can reuse existed one to create new. For slave mode be sure module interrupt is properly enabled and Auto-detect baudrate feature is properly implemented, as shown in the example and described in  the chapter 3.6.5 Auto-detect baudrate feature of RTD_LIN_43_LPUART_FLEXIO_UM.pdf

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,361件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) this can point to bit timing issue. Be sure bitrate is set similarly. You can measure geenrated signal on TX/RX if it as expected.

2) here are two RTD demos you can refer to, where LPUART is used as LIN Slave
"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 
- "Lin_Slave_S32K344_Example_DS" ... LINStack example demonstrating the LIN communication between S32K344 Slave and other board Master using unconditional frames.
There is no direct example for S32K311, but you can reuse existed one to create new. For slave mode be sure module interrupt is properly enabled and Auto-detect baudrate feature is properly implemented, as shown in the example and described in  the chapter 3.6.5 Auto-detect baudrate feature of RTD_LIN_43_LPUART_FLEXIO_UM.pdf

BR, Petr

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2008948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20Lin%20%E3%82%B9%E3%83%AC%E3%83%BC%E3%83%96%20%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AE%E5%95%8F%E9%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2008948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ES32K3%E3%83%81%E3%83%BC%E3%83%A0%E3%81%AE%E7%9A%86%E6%A7%98%E3%81%B8%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%81%8C%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AB%E3%82%88%E3%81%8F%E4%BC%9D%E3%82%8F%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E9%A1%98%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E7%8F%BE%E5%9C%A8%E3%80%81S32K311%E3%81%A7LIN-LPUART%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E9%80%9A%E4%BF%A1%E3%82%92%E8%A9%A6%E3%81%BF%E3%82%8B%E9%9A%9B%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%82%92%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E4%BB%A5%E4%B8%8B%E3%81%A7%E3%81%AF%E3%80%81%E7%A7%81%E3%81%8C%E9%81%AD%E9%81%87%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%95%8F%E9%A1%8C%E3%81%AE%E6%A6%82%E8%A6%81%E3%82%92%E8%AA%AC%E6%98%8E%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%AE%E3%81%A7%E3%80%81%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%82%84%E3%82%AC%E3%82%A4%E3%83%80%E3%83%B3%E3%82%B9%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%97%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%82%8C%E3%81%B0%E5%B9%B8%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E1.%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%A2%E3%83%BC%E3%83%89%E3%81%A7LIN%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92response-rx%E5%BD%A2%E5%BC%8F%E3%81%A7%E9%80%81%E4%BF%A1%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E3%80%81Canoe%E3%81%8C%E3%80%8C%E5%90%8C%E6%9C%9F%E5%8C%BA%E5%88%87%E3%82%8A%E6%96%87%E5%AD%97%E3%81%AE%E9%95%B7%E3%81%95%E3%81%8C%E6%AD%A3%E3%81%97%E3%81%8F%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%8D%E3%81%A8%E3%81%84%E3%81%86%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E6%A4%9C%E5%87%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E1.1.%E3%81%9D%E3%82%8C%E3%81%AB%E3%82%82%E3%81%8B%E3%81%8B%E3%82%8F%E3%82%89%E3%81%9A%E3%80%81Canoe%20%E3%81%AF%E5%BF%9C%E7%AD%94%E3%82%92%E9%80%81%E4%BF%A1%E3%81%97%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81LIN%20IRQ%20%E3%83%8F%E3%83%B3%E3%83%89%E3%83%A9%E3%83%BC%E3%81%AF%E3%83%95%E3%83%AC%E3%83%BC%E3%83%9F%E3%83%B3%E3%82%B0%20%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E6%A4%9C%E5%87%BA%E3%81%97%E3%80%81%E6%AD%A3%E3%81%97%E3%81%84%E5%BF%9C%E7%AD%94%E3%81%8C%E9%80%81%E4%BF%A1%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3E2.%20%E3%82%B9%E3%83%AC%E3%83%BC%E3%83%96%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AE%E4%BE%8B%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%A7%E3%81%99%E3%80%82(RTD%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%3ASW32K3_RTD_R21-11_3.0.0_P07)%3CBR%20%2F%3E2.1.%E3%82%B9%E3%83%AC%E3%83%BC%E3%83%96%E3%83%A2%E3%83%BC%E3%83%89%E3%81%A7%E5%88%9D%E6%9C%9F%E5%8C%96%E3%81%97%E3%81%A6%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%97%E3%81%9F%E3%81%A8%E3%81%93%E3%82%8D%E3%80%81Canoe%E3%81%8B%E3%82%89%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E9%80%81%E4%BF%A1%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81LIN%E3%83%90%E3%82%B9%E3%81%AE%E6%B3%A2%E5%BD%A2%E3%81%8CLPUART-RX%E3%83%94%E3%83%B3%E3%81%A8%E4%B8%80%E8%87%B4%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E7%A2%BA%E8%AA%8D%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E5%89%B2%E3%82%8A%E8%BE%BC%E3%81%BF%E3%81%AF%E7%99%BA%E7%94%9F%E3%81%9B%E3%81%9A%E3%80%81IRQ%20%E3%83%8F%E3%83%B3%E3%83%89%E3%83%A9%E3%81%AF%E3%83%88%E3%83%AA%E3%82%AC%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%93%E3%82%8C%E3%82%89%E3%81%AE%E8%AA%B2%E9%A1%8C%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%80%81%E3%81%94%E6%8C%87%E5%B0%8E%E3%82%84%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%82%92%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E5%BF%83%E3%81%8B%E3%82%89%E9%A1%98%E3%81%A3%E3%81%A6%E3%81%8A%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%94%E5%A4%9A%E5%BF%99%E3%81%AE%E3%81%94%E5%8D%94%E5%8A%9B%E3%82%92%E3%81%84%E3%81%9F%E3%81%A0%E3%81%8D%E3%80%81%E8%AA%A0%E3%81%AB%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E