LIN FLEX for MPC5748G

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

LIN FLEX for MPC5748G

Jump to solution
1,109 Views
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 Kudos
Reply
1 Solution
1,094 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,095 Views
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 Kudos
Reply