LIN example not working for s32k344

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

LIN example not working for s32k344

ソリューションへジャンプ
1,282件の閲覧回数
vinithramarapunxp
Contributor II

I am working on LIN configuration for s32k344 in S32DS. I have took the example Lin_Ip_FrameTransfer_S32K344 from S32K3 RTD AUTOSAR 4.4 2.0.0 D2203 Example projects for S32K344 in S32DS 3.4. The code is building fine with 0 errors but ain't getting the output in Saleae Logic Analyzer. I haven't done any changes to the configurational settings in s32ds, just updated the code and flashed it into the S32k344 using PEMicro Debugger. Also cahnges from 257 to 172 package. What changes are to be made to get the data frame in the Logic analyzer. I'll attach the configuration in Logic analyzer too. Hoping a reply and thanks in advance.

image.pngimage.png

Regards, 

Vinith Ramarapu.

 

S32K344-WB S32K3X4EVB-T172 #lin-protocol

@nxp @nxpcommunity 

0 件の賞賛
返信
1 解決策
1,258件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this is a simple application which shows a communication between a Lin Master and a Lin Slave of both Lpuart Ip and Flexio Ip. As example does communication between LIN Master/Slave on the board, you should connect J23.7 to J23.8 and place either J20 or J24 jumper. Then 2 LIN frames should be visible on this LIN bus connection after example running. This is what you should get

PetrS_1-1733140943714.png

Note in example just 2 frames are sent and then main function is leaved. You can try to add some endless while so frame will be sent still.

BR, Petr

 

 

元の投稿で解決策を見る

3 返答(返信)
1,259件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this is a simple application which shows a communication between a Lin Master and a Lin Slave of both Lpuart Ip and Flexio Ip. As example does communication between LIN Master/Slave on the board, you should connect J23.7 to J23.8 and place either J20 or J24 jumper. Then 2 LIN frames should be visible on this LIN bus connection after example running. This is what you should get

PetrS_1-1733140943714.png

Note in example just 2 frames are sent and then main function is leaved. You can try to add some endless while so frame will be sent still.

BR, Petr

 

 

1,229件の閲覧回数
vinithramarapunxp
Contributor II
It's working fine. Thank you community. The only thing I missed is that I haven't connected either of the jumpers (J20 and J24). May I know why they should be shorted or used a jumper? I haven't seen anything like that specified anywhere in manuals or example description. Anyways it's working.
0 件の賞賛
返信
1,221件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this connect master pull-up resistor/reverse diode. LIN uses an open-drain line, so it needs to be pulled up to get a valid high-level voltage.

BR, Petr

0 件の賞賛
返信