S32K312 LIN Communication as Master mode

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

S32K312 LIN Communication as Master mode

跳至解决方案
788 次查看
WW1984
Contributor II

Dear NXP Team.

I try to Lin communication for master mode using linstack v2.0.4. 

However I face the problem slave not responding. 

Master publish frame is normal workiong,  however subscribe message has not working.

In detailed, CANoe interface as slave side is not respone from physical layer.

When I checked waveform at osiloscope, and I think timing is not problem.

I attached my configuration project.

Could you pleae give to me any advice?

* Project Information

- S32K312 172Pin EVB

- RTD v4.0.0

- Lin stack v2.0.4

- Referenced project is Lin stack example for S32K344

Best regards.

 

0 项奖励
回复
1 解答
755 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I did below modifications of your code and it responds accordingly to data published by slave, see attached video.
- uncomment lin_dal_timeout_service(LI0) in Lin_Schedule_Ctrl
- check Motor1Temp flag and read its data in lin_master_task

I used PLIN View and load ldf there to work as Motor1 slave

BR, Petr

在原帖中查看解决方案

3 回复数
756 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I did below modifications of your code and it responds accordingly to data published by slave, see attached video.
- uncomment lin_dal_timeout_service(LI0) in Lin_Schedule_Ctrl
- check Motor1Temp flag and read its data in lin_master_task

I used PLIN View and load ldf there to work as Motor1 slave

BR, Petr

680 次查看
WW1984
Contributor II

Hi @PetrS 

Thanks for your reply. I checked and normal working. 

Sorry for late check. Because I'm out of office last week.

When I checked code, OsIf_internal.h file below need to be modified manually in the lin_commontl_proto.c ?

WW1984_0-1722836655315.png

 

Thanks,

BR

 

 

0 项奖励
回复
665 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I just added it to be able to compile your project.

BR, Petr

0 项奖励
回复