Lin Mismatched Values Using LIN Stack

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

Lin Mismatched Values Using LIN Stack

6,064 次查看
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

 

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

6,041 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hi @itsnewforme,

What is the package's name you are using?

Best regards,

Dan

0 项奖励
回复

6,031 次查看
itsnewforme
Contributor IV
0 项奖励
回复

6,017 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hi @itsnewforme,

Could you send me your ldf file?

Best regards,

Dan

0 项奖励
回复

6,005 次查看
itsnewforme
Contributor IV

sure, PFA LDF and NPF Files

0 项奖励
回复

5,666 次查看
DanNguyenDuy
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 项奖励
回复

5,658 次查看
itsnewforme
Contributor IV

Hi @DanNguyenDuy , 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 项奖励
回复

5,649 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hi @itsnewforme,

The attachment is example.

Best regards,

Dan

0 项奖励
回复