AnsweredAssumed Answered

CAN_LDD TRK_KEA128 sendFrame (NOT LOOPBACK)

Question asked by Michael Amici on Jan 18, 2016
Latest reply on Jan 24, 2018 by Hugo Moran

I got loopback working fine on TRK-KEA128 board but I cant get the real thing working! My sendFrame function returns ERR_OK but the TX buffer is never cleared!

 

I am following the suggested code and cant get it right. I know my code is ok. I am looking for tips to get it working on the real CANBUS, not loopback

 

I repeat, NOT LOOPBACK

 

Please do NOT send me code suggestions for loopback, they work in loopback but not on a real network!

 

          LDD_CAN_TFrame Frame;

        Frame.MessageID = (0x201U | LDD_CAN_MESSAGE_ID_EXT);

        Frame.FrameType = LDD_CAN_DATA_FRAME;

 

        uint8_t data[] = {0x02U, 0x10U, 0x68U}; //{0x68U, 0x10U, 0x02U};

 

        Frame.Data = data;

 

        Frame.Length = sizeof(data);

 

        LDD_TError error = CAN1_SendFrame(CAN1_DeviceData, 1U, &Frame);

 

 

TX free buffer never fires!!!

 

PLEASE HELP TIME CRITICAL

Outcomes