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

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

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

ソリューションへジャンプ
3,584件の閲覧回数
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,543件の閲覧回数
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,569件の閲覧回数
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,583件の閲覧回数
Du_0224
Contributor III

Question 2:

Du_0224_0-1668496879098.png

 

 

0 件の賞賛
返信
3,563件の閲覧回数
cuongnguyenphu
NXP Employee
NXP Employee

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

0 件の賞賛
返信
3,561件の閲覧回数
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,544件の閲覧回数
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,541件の閲覧回数
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 件の賞賛
返信