LIN example not working for s32k344

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN example not working for s32k344

Jump to solution
1,176 Views
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 Kudos
Reply
1 Solution
1,152 Views
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

 

 

View solution in original post

3 Replies
1,153 Views
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,123 Views
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 Kudos
Reply
1,115 Views
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 Kudos
Reply