Step-by-Step Guide for LIN Communication on S32K3x4EVB-Q172 Using S32DS v3.5

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

Step-by-Step Guide for LIN Communication on S32K3x4EVB-Q172 Using S32DS v3.5

跳至解决方案
3,115 次查看
vinithramarapu
Contributor I

I’m working with the S32K3x4EVB-Q172 evaluation board, and I need help implementing LIN communication to send and receive data between my board and a different device (like CANanalyser or similar board). Specifically, I’m looking for guidance on:

  1. Basic configuration setup for LIN in S32 Design Studio (S32DS) v3.5.
    • What are the key steps for configuring LIN communication?
  2. Using CANanalyser as a LIN slave device:
    • How can I set up CANanalyser to visualize and monitor the data sent or received via LIN communication?
  3. Steps to verify successful communication:
    • What are the best practices to check if the LIN communication is functioning correctly between the S32K3x4EVB-Q172 and the slave device?
    • Are there any specific tools or methods to verify that messages are being transmitted and received correctly?

S32K3X4EVB-T172 #s32ds_v3.5 S32K344-WB 

标记 (1)
0 项奖励
回复
1 解答
3,078 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) there are few RTD demo examples as well as LIN stack demo within S32DS you can refer to

PetrS_0-1726486303286.pngPetrS_0-1726486303286.png

2) this is rather question for Vector. I do not know and work with that tool. Maybe you can find some guidelines/videos on the web.
I assume it woulld be enough to setup used HW interface for Slave functionality with given bitrate. Then tool would be able to show frames sent by master. To respond to header requesting payload, a response frame should be prepared in the tool.
If you have a LDF file, this can be loaded into a tool and so it has info about frames to be send/received.

3) basically the code itself is running as desired, so it publishes frames successfully and receives slave responses too. If not it is good to have a scope/analyzer to measure MCU's TX/RX lines and LIN bus.  

BR, Petr

在原帖中查看解决方案

2 回复数
2,679 次查看
BarisS37
Contributor II

Hello ,

How can we implement this LIN application for S32K311 MCU ? 

I m working on first NXP mcu project and usually ı cant find true support about using S32DS

I guess my S32DS new version but example codes are on old version and cant implement directly,

Can you help me this topic

0 项奖励
回复
3,079 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) there are few RTD demo examples as well as LIN stack demo within S32DS you can refer to

PetrS_0-1726486303286.pngPetrS_0-1726486303286.png

2) this is rather question for Vector. I do not know and work with that tool. Maybe you can find some guidelines/videos on the web.
I assume it woulld be enough to setup used HW interface for Slave functionality with given bitrate. Then tool would be able to show frames sent by master. To respond to header requesting payload, a response frame should be prepared in the tool.
If you have a LDF file, this can be loaded into a tool and so it has info about frames to be send/received.

3) basically the code itself is running as desired, so it publishes frames successfully and receives slave responses too. If not it is good to have a scope/analyzer to measure MCU's TX/RX lines and LIN bus.  

BR, Petr

%3CLINGO-SUB%20id%3D%22lingo-sub-1953549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20S32DS%20v3.5%20%E5%9C%A8%20S32K3x4EVB-Q172%20%E4%B8%8A%E8%BF%9B%E8%A1%8C%20LIN%20%E9%80%9A%E4%BF%A1%E7%9A%84%E5%88%86%E6%AD%A5%E6%8C%87%E5%8D%97%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20S32K3x4EVB-Q172%20%E8%AF%84%E4%BC%B0%E6%9D%BF%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E5%B8%AE%E5%8A%A9%E5%AE%9E%E7%8E%B0%20LIN%20%E9%80%9A%E4%BF%A1%EF%BC%8C%E4%BB%A5%E4%BE%BF%E5%9C%A8%E6%88%91%E7%9A%84%E7%94%B5%E8%B7%AF%E6%9D%BF%E5%92%8C%E5%85%B6%E4%BB%96%E8%AE%BE%E5%A4%87%EF%BC%88%E5%A6%82%20CANanalyser%20%E6%88%96%E7%B1%BB%E4%BC%BC%E7%94%B5%E8%B7%AF%E6%9D%BF%EF%BC%89%E4%B9%8B%E9%97%B4%E5%8F%91%E9%80%81%E5%92%8C%E6%8E%A5%E6%94%B6%E6%95%B0%E6%8D%AE%E3%80%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A5%20S32K3x4EVB-Q172%20%E5%92%8C%E4%BB%8E%E8%AE%BE%E5%A4%87%E4%B9%8B%E9%97%B4%E7%9A%84%20LIN%20%E9%80%9A%E4%BF%A1%E6%98%AF%E5%90%A6%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C%E7%9A%84%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%3C%2FLI%3E%3CLI%3E%E6%98%AF%E5%90%A6%E6%9C%89%E4%BB%BB%E4%BD%95%E7%89%B9%E5%AE%9A%E7%9A%84%E5%B7%A5%E5%85%B7%E6%88%96%E6%96%B9%E6%B3%95%E6%9D%A5%E9%AA%8C%E8%AF%81%E6%B6%88%E6%81%AF%E6%98%AF%E5%90%A6%E6%AD%A3%E7%A1%AE%E4%BC%A0%E8%BE%93%E5%92%8C%E6%8E%A5%E6%94%B6%EF%BC%9F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K3X4EVB-T172%2Fpd-p%2FS32K3X4EVB-T172%22%20class%3D%22lia-product-mention%22%20data-product%3D%223489-1%22%20target%3D%22_blank%22%3ES32K3X4EVB-T172%3C%2FA%3E%20%23s32ds_v3.5%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32K344-WB%2Fpd-p%2FS32K344-WB%22%20class%3D%22lia-product-mention%22%20data-product%3D%223494-1%22%20target%3D%22_blank%22%3ES32K344-WB%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E