S32K3 RTD 3.0.0 P01 - LINSTACK 2.0.3 - multiple masterRequest frame bug

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

S32K3 RTD 3.0.0 P01 - LINSTACK 2.0.3 - multiple masterRequest frame bug

307 Views
cf_st
Contributor I

Hi all, 

I am developing a LIN application for S32K311 and using S32K3 RTD 3.0.0 P01 and LINSTACK 2.0.3.

My master ECU shall perform an update of slave ECU (K118 microcontroller) by sending data using multiple MasterReq frames, with pdu sizes of 4090 bytes. I am e

Initially I could not send the whole data packet using the ld_send_message() API, when I called it the queue was filled with 170 packets (vs 682 expected);

looking into the stack code, in file lin_commontl_api.c line 222 the variable message size was decleared as l_u8; changing the data type to l_u16 and then avoiding the recasting at the use (line 242 and following) the queue is correctly filled and buffer is sent. Below a screenshot of the interested code. 

cf_st_0-1718872553678.png

At this point, I would expect the ECU to send all the consecutive frames of MasterRequest and then the header of SlaveResponse frame, but I cannot see any request header transit on bus.

On other services I apply the same strategy used here (call to ld_send_messages() and ld_receive_message()) and the header of SlaveResponse was always sent without further actions. Can you help me clarify this behavior? 

Thanks in advance, BR 

 

 

 

0 Kudos
Reply
1 Reply

269 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @cf_st,

Please share the project so that we can reproduce it.

If you don't want to share it here, create a ticket.

 

Regards,

Daniel

0 Kudos
Reply