LIN Diagnostic Issue using LIN Stack

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

LIN Diagnostic Issue using LIN Stack

1,999 次查看
chaitanya_kalyani
Contributor III

Hello,

 

I am using processor expert mode, LIN stack(SDK_S32K1xx_15) and want to use diagnostics for S32K116 series controller.

 

I checked with Both IDE S32 Design Studio V2018 as well as V2.2.

 

For unconditional signal there is no issue but getting issue with diagnostic signal No Response Error getting.

 

chaitanya_kalya_0-1608312871972.png

For checking I am sending command Read By Identifier - LIN Product identification.

 

Code is enabled but control is not coming to the part of the code. Same thing tested and working with S12ZVL series controller.

 

chaitanya_kalya_1-1608313140810.png

 

Thank you in advance.

 

 

 

0 项奖励
回复
5 回复数

1,967 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

maybe you send a request with a wrong value of “Supplier ID” or “Function ID”.

S32DS configuration

danielmartynek_0-1608734755550.png

Diagnostic request and response on the bus

danielmartynek_1-1608734833938.png

Regards,

Daniel

 

0 项奖励
回复

1,960 次查看
chaitanya_kalyani
Contributor III

Hello @danielmartynek ,

 

Thank you for your response.

 

I checked still it is not getting response for diagnostics.

chaitanya_kalya_0-1608969844130.png

and my configuration is 

chaitanya_kalya_1-1608970107722.png

I am not getting where is the issue.

 

0 项奖励
回复

1,927 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

I'm sorry for the delayed response,

Could you please scope the the diagnostic request frame (3C) and the response frame (3D) by a logic analyzer on the LPUART pins?

This is an answer from the LIN Stack SW team:

Please make sure that the conditions below have been met:
- Tick on “User transport layer” and “Support diagnostic service” on tab “Network configuration”
- Configure with the correct value of “Supplier ID” and “Function ID” on tab “Node attribute definition”
- Re-generate configuration files and compile
- Call “ ld_init()” function before use diagnostic service.

 

Thank you,

BR, Daniel

 

0 项奖励
回复

1,175 次查看
Francesco_Solito
Contributor II

Good morning

I have the same issue (with S32DS 3.5 instead of 2018.R1). I followed the suggestions in this post, but I didn't solve. Did you solve your issue? Could you please share the solution?

Thank you in advance.

Kind regards,

Francesco Solito

0 项奖励
回复

1,122 次查看
Francesco_Solito
Contributor II

Hello

ld_init(LI0) was not present in the main.c of the example project "lin_slave_s32k118". Calling it before l_ifc_init(LI0) has solved the issue.

Kind regards,

Francesco

0 项奖励
回复