LIN HDF flag stays at 0 on MPG5748G slave LINFlexD_0

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

LIN HDF flag stays at 0 on MPG5748G slave LINFlexD_0

632 次查看
jnaulet
Contributor I

Hello everyone,

i'm currently using a devkit for MPG5748G and connected the 2 LIN interfaces together, with LIN1 as master and LIN0 as slave.

I'm sending headers from LIN1 and it seems fine (checked with an oscilloscope, see attached picture).

On LIN0, i'm stuck, the LINSR.HRF flag never turns on. But if i look with the debugger, the BIDR.ID field changes according to the header sent by LIN1.

Does anyone have any idea of what's going on ? Thanks

 

0 项奖励
回复
2 回复数

607 次查看
jnaulet
Contributor I

Ok, i found some kinda solution for the MPC5748G chip anyways... In chapter 45.5.7, the manual talks about some issues with the timeout control status register. As always with NXP, it clear as sh*t, but if you play with the MODE bit the way it's indicated, it solves the issue.

0 项奖励
回复

603 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Joachim,

just in case, we have working example here:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-LINFlex-LIN-Master-Slave-test-G...

Regards,

Lukas

0 项奖励
回复