S32K312 LIN Communication as Master mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K312 LIN Communication as Master mode

ソリューションへジャンプ
784件の閲覧回数
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 解決策
751件の閲覧回数
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 返答(返信)
752件の閲覧回数
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

676件の閲覧回数
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 件の賞賛
返信
661件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

BR, Petr

0 件の賞賛
返信