Issue with TP Layer Integration on S32k118

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

Issue with TP Layer Integration on S32k118

1,798 次查看
Shruti_JSS
Contributor I

Hi,

I am facing an issue with the length of the received buffer. I noticed that the length of the last received message will not be updated with the recently received message. On further analysis, I also found that it is triggered from the TP layer “lin_commontl_proto.c” file.

The attached image is the code snippet where I found the issue arise.

 

Tina123_1-1687287443167.png

 

When I transmitted a Read DID where the DLC is 3 and then transmitted a Write DID of length 19, I was having issues with my application. Seemed that the value of *length was 3 and temp_length was 19 which led to problem with my application.

I need to understand if I am going wrong somewhere with the way I use the data or does this file need to be updated.

标记 (1)
0 项奖励
回复
4 回复数

1,782 次查看
bryan_brauchler
NXP Employee
NXP Employee

Hi

The length pointer should be set by ld_receive_message

bryan_brauchler_0-1687293931605.png

Is this getting called on the second transmission?

 

Best,

 

Bryan

 

0 项奖励
回复

1,739 次查看
Shruti_JSS
Contributor I

Bryan,

Yes this function gets called on second transmission as well.

0 项奖励
回复

1,685 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hello,

as Bryan wrote please provide more info. SW stack team is requestion some information as below:

  • Hardware and software version that they are using.
  • How can I reproduce this issue?
  • Trace log or images of the frames that were transmitted on the bus.

Thanks,
BR, Petr

0 项奖励
回复

1,708 次查看
bryan_brauchler
NXP Employee
NXP Employee

Hello,

 

We are investigating. Would you be able to provide a minimal example code that demonstrates this issue?

 

Best,

 

Bryan

0 项奖励
回复