AnsweredAssumed Answered

MSCAN spamming CAN bus

Question asked by Sam Kreuze on Nov 24, 2015
Latest reply on Nov 30, 2015 by Sam Kreuze

Hello, I'm trying to send CAN messages from a MKE06Z128VLH4 running MQXLite using the MSCAN processor expert component.  I am able to receive, however, when I try to transmit, I send one message then the processor keeps spamming the same message repeatedly.


I am sure my code is not sending the messages repeatedly. So the MSCAN driver must be...


My code is as follows:


LDD_CAN_TFrame FrameTX1;

uint8_t frameData[] =

    { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };

LDD_TError error;


FrameTX1.MessageID = ( | 0x00000000);

FrameTX1.FrameType = LDD_CAN_DATA_FRAME;


FrameTX1.Length = 8;

FrameTX1.Data = frameData;

error = CAN_SendFrame(g_CANPtr, 1U, &FrameTX1);

if (error)



    printf("CAN TX 1 ERROR : %d\n\r", error);




I do not receive any errors. I can see the messages being spammed repeatedly on my scope. Is there something in the component I set up wrong?