S32K312 LIN Communication as Master mode

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

S32K312 LIN Communication as Master mode

Jump to solution
515 Views
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 Kudos
Reply
1 Solution
482 Views
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

View solution in original post

3 Replies
483 Views
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

407 Views
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 Kudos
Reply
392 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

BR, Petr

0 Kudos
Reply