LIN FLEX for MPC5748G

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

LIN FLEX for MPC5748G

跳至解决方案
1,129 次查看
elb1
Contributor III

I have a low level driver for LIN that is working for MPC5748g micro-controller, but now we changed to MPC5748g micro-controller, and i am trying to use the same driver (i think there is no difference) but it doesn't work .

For the send function i have this:

    if ((ctx->base->LINSR & LINFlexD_LINSR_DTF_MASK) == 0) 
    { 
         return AGAIN 
    } 

     ctx->base->LINSR |= LINFlexD_LINSR_DTF_MASK;


the problem is that when i call send function the DTF mask is sometimes set sometimes not, so the frame is sent ion some times and in sometimes not

thank you in advance for your help

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

Hi,

can you please recheck wording you have? You wrote you have working MPC5748G LIN driver and change to MPC5748G MCU...

Some example for MPC5748G is given in https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-LINFlex-LIN-Master-Slave-test-G... so you can refer to it.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,115 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

can you please recheck wording you have? You wrote you have working MPC5748G LIN driver and change to MPC5748G MCU...

Some example for MPC5748G is given in https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-LINFlex-LIN-Master-Slave-test-G... so you can refer to it.

BR, Petr

0 项奖励
回复