LIN example not working for s32k344

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LIN example not working for s32k344

跳至解决方案
1,194 次查看
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,170 次查看
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,171 次查看
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,141 次查看
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,133 次查看
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 项奖励
回复