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

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

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

Jump to solution
2,280 Views
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 Kudos
Reply
1 Solution
2,239 Views
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

 

View solution in original post

0 Kudos
Reply
6 Replies
2,265 Views
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 Kudos
Reply
2,279 Views
Du_0224
Contributor III

Question 2:

Du_0224_0-1668496879098.png

 

 

0 Kudos
Reply
2,259 Views
cuongnguyenphu
NXP Employee
NXP Employee

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

0 Kudos
Reply
2,257 Views
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 Kudos
Reply
2,240 Views
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 Kudos
Reply
2,237 Views
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 Kudos
Reply