Issue with TP Layer Integration on S32k118

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

Issue with TP Layer Integration on S32k118

953 Views
Anonymous1234
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.

Tags (1)
0 Kudos
Reply
4 Replies

937 Views
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 Kudos
Reply

894 Views
Anonymous1234
Contributor I

Bryan,

Yes this function gets called on second transmission as well.

0 Kudos
Reply

840 Views
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 Kudos
Reply

863 Views
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 Kudos
Reply