Hello Everyone,
I have a problem with MPC5746C SDK Flexcan Driver. I try to transmit and receive data with sample code (flexcan_mpc5746c). I can receive succesfully but I can not transmit data from CAN0.
Message buffer is contuniuesly in FLEXCAN_TX_BUSY state. How can I fix this issue ? There is an sample code attached for simple flexcan tx/rx trial.
status_t FLEXCAN_DRV_GetTransferStatus(uint8_t instance, uint8_t mb_idx)
{
DEV_ASSERT(instance < CAN_INSTANCE_COUNT);
const flexcan_state_t * state = g_flexcanStatePtr[instance];
status_t status;
if (state->mbs[mb_idx].state == FLEXCAN_MB_IDLE)
{
status = STATUS_SUCCESS;
}
else
{
status = STATUS_BUSY;
}
return status;
}