s32k148 lin without lin stack in sdk 3.0

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

s32k148 lin without lin stack in sdk 3.0

1,325 次查看
15736231627
Contributor II

I would like to ask the lin function of s32k148, how to send and receive messages and configure interrupt functions if you do not use the lin stack, that comes with sdk3.0? is there any relevant example?

标签 (1)
标记 (1)
0 项奖励
3 回复数

1,035 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

A very simple example for LIN Master can be found in this community thread:

S32K144 LIN bus 

Or non-SDK examples for the S32K142 can be found in the attachment.

The bare metal UART examples from the AN5413 - Cookbook for the S32K1xx series or AN12174 - Using FlexIO to emulate communications and timing peripherals could be also, used as base projects for your LIN application.

AN5413

https://www.nxp.com/docs/en/application-note/AN5413.pdf 

AN5413SW

https://www.nxp.com/webapp/Download?colCode=AN5413SW&docLang=en 

AN12174

https://www.nxp.com/docs/en/application-note/AN12174.pdf 

AN12174SW

https://www.nxp.com/webapp/Download?colCode=AN12174SW&docLang=en 

I hope it helps.

Best regards,

Diana

0 项奖励

1,035 次查看
15736231627
Contributor II

First of all, thank you for your answer. I have an example here about LIN receiving and sending messages, but there is a question:

1.When receiving the information of the master node as a slave node, it will not enter the callback function and cannot receive the information sent by the host.
2. When receiving information as the master node, if you hit a breakpoint where the callback function receives the PID_OK, and then continue to run, you will no longer enter the callback function. What is the reason for this?
Could you take a look at my code for me? Thank youpastedImage_1.png

pastedImage_3.png

pastedImage_4.png

pastedImage_5.png

0 项奖励

1,035 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello, 

I'm very sorry for the delay. I can see that you got an answer in your second thread with your code in the attachment.

I hope you have solved your issue.

S32K148 LIN communication problem  

Best regards,

Diana

0 项奖励