S32K3 LIN: ID limit and master mode receive interrupt callback problem

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

S32K3 LIN: ID limit and master mode receive interrupt callback problem

跳至解决方案
3,591 次查看
Du_0224
Contributor III

Hello,

Question 1:

When I test the LIN Demo (Lin_MasterFrameTransfer_S32K344) provided by RTD, I can only use the ID: 0x1A in the Demo to send. It is not possible to switch to other IDs, such as 0x4, 0x1C, etc. Debug results show that it is in Lin_ Ip_ ProcessParity () was judged as an exception.

Du_0224_0-1668496050183.png

Du_0224_1-1668496082893.png

I can't find the relevant configuration item in the mex configuration tool. Which configuration item do I need to change.

 

Question 2:

Using Lin Master Mode

I am in the RTD static code Lin_ Ipw_ In Callback(), it is found that no response is received in the Master Mode. For example, if I want to use the Lin Master to send a message ID and ask the slave to send the response data, what should I do if the master needs to receive the response data sent by Slave through interrupt callback?

Is it because the logic code of Lin part has not been improved by RTD, or other reasons?

 

I'm in Lin_ Ipw_ The following logic has been added to Callback(). Is it allowed?

 

Du_0224_2-1668496587632.png

 

We look forward to your reply.

thank you.

 

0 项奖励
回复
1 解答
3,550 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi @Du_0224 ,
As per Autosar Specification of LIN module, the LinIf_RxIndication only use for Slave nodes:

cuongnguyenphu_0-1669175673364.png

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
3,576 次查看
Du_0224
Contributor III

Hello

Sorry, I have found the reason for question 1.
I confused the relationship between LIN ID and PID.

 

Now there is only question 2.

0 项奖励
回复
3,590 次查看
Du_0224
Contributor III

Question 2:

Du_0224_0-1668496879098.png

 

 

0 项奖励
回复
3,570 次查看
cuongnguyenphu
NXP Employee
NXP Employee

What is your current SW package that you 're referring the code?

0 项奖励
回复
3,568 次查看
Du_0224
Contributor III

Hello,

* Autosar Version : 4.4.0
* Autosar Revision : ASR_REL_4_4_REV_0000
* Autosar Conf.Variant :
* SW Version : 2.0.1
* Build Version : S32K3_RTD_2_0_1_D2207_ASR_REL_4_4_REV_0000_20220707

0 项奖励
回复
3,551 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi @Du_0224 ,
As per Autosar Specification of LIN module, the LinIf_RxIndication only use for Slave nodes:

cuongnguyenphu_0-1669175673364.png

 

0 项奖励
回复
3,548 次查看
Du_0224
Contributor III

Hi,

Yes, I checked AUTOSAR_ SWS_ LINDriver documentation.

Lin master receiving of AutoSar specification needs to use Lin_ GetStatus interface.

So I can't use interrupt callback.

Thank you for your answer.

0 项奖励
回复