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