This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AWR1642: mcan

Part Number: AWR1642

Tool/software: TI C/C++ Compiler

Hi,

In awr1642 canfd where can i create different message objects in code . 

I sent messages with different Message ids. it is sending. is it priority based on id or object number.

if it is on object number in canfd where can i set object numbers . please guide me.

Thanks and regards, 

K Subrahmaniam

  • Hi Subramaniam,

    Sending you the snapshot of the code for TX multiple message ID.  

    if (testFrameType == CANFD_MCANFrameType_FD)
    {

    length = 128U;
    if(idIndex > 5)
    {
    idIndex = 0;
    }
    msgId = txMsgObjectParams.msgIdentifier + idIndex;
    Task_sleep(1U);
    while(length > 64U)
    {

    retVal = CANFD_transmitData (txMsgObjHandle, msgId, CANFD_MCANFrameType_FD, 64U, &txData[0], &errCode);
    length = length - 64U;
    Task_sleep(1);
    }
    idIndex++;
    }

    This is already answered in the previous posts. You can also check them by searching the e2e posts.

    Thanks,

    Raghu