s32k148 lin without lin stack in sdk 3.0

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

s32k148 lin without lin stack in sdk 3.0

1,333件の閲覧回数
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,043件の閲覧回数
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,043件の閲覧回数
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,043件の閲覧回数
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 件の賞賛