Lin Mismatched Values Using LIN Stack

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

Lin Mismatched Values Using LIN Stack

1,407 Views
itsnewforme
Contributor IV

Hi, I'm using S12 ECU as LIN Slave For Reprogramming using LIN Stack. 

Here, For the first request i.e. 02 10 02 00 00 00 00 00  I'm getting a proper response

06 50 02 00 00 00 00 00 ( Refer below image )

itsnewforme_1-1680701355449.png

Now, For the Second Request 02 27 01 00 00 00 00 00. I'm getting a different response than expected.

On debugging I found out that  the array that I'm using to store response  is correctly getting filled also the array used by LIN stack i.e. lin_p_frameBuf is also correctly getting filled with data ( refer image below - highlighted in blue )

itsnewforme_2-1680701624911.png

itsnewforme_4-1680701797067.png

So, the expected response should be 06 67 01 84 87 00 00 00. But, on Trace Window the data is

06 67 01 59 EB 00 00 00. i.e.  first three bytes are okay but next three bytes are different. ( please refer image )

itsnewforme_5-1680701991296.png

Can you please suggest anything to resolve this issue.

Thanks in advance

BR, Abhijit

 

0 Kudos
7 Replies

1,384 Views
nxf78987
NXP Employee
NXP Employee

Hi @itsnewforme,

What is the package's name you are using?

Best regards,

Dan

0 Kudos

1,374 Views
itsnewforme
Contributor IV
0 Kudos

1,360 Views
nxf78987
NXP Employee
NXP Employee

Hi @itsnewforme,

Could you send me your ldf file?

Best regards,

Dan

0 Kudos

1,352 Views
itsnewforme
Contributor IV

sure, PFA LDF and NPF Files

0 Kudos

1,013 Views
nxf78987
NXP Employee
NXP Employee

Hi @itsnewforme,

Based on your information, I created an example to reproduce the issue. In my example the data will be updated after each successful receipt of Tx_frame.
You can see all of frames that sent on the bus as below:
 
nxf78987_0-1683801226944.png

Please re-check on your side to make sure that you updated the signal correctly.

  • Use correct configuration files that generated by NCF tool.
  • l_bytes_wr_LI0_BootLoader_Rx_Frame() to update signal to buffer before it is sent on the bus.
Anyway, you can refer to my example to more detail(Attached).
  • Software: LIN_stack_S12_4_6_6
  • Hardware: S12ZVL128
If the issue is still not resolved, please share with me more information about your project.
 
Best regards,
Dan
0 Kudos

1,005 Views
itsnewforme
Contributor IV

Hi @nxf78987 , Thank you so much for your reply. I'm unable to see the files that you have attached. Can you please confirm once and attach those files again.

 

Thanks & Regards

Abhijit.

0 Kudos

996 Views
nxf78987
NXP Employee
NXP Employee

Hi @itsnewforme,

The attachment is example.

Best regards,

Dan

0 Kudos