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.

CAN BOXMESSAGE

Other Parts Discussed in Thread: TMS570LS1224

Hello!

I have been working with TMS570LS1224 and CAN-BUS. I know that datasheet expected only 64 messages with assigned ID for CAN register. But I want to receive all ID's and filtrate/mapping its myself. I want to make listener of CAN messages. How to take off arbiter ? How to listen all messages regardless of the ID.

Best Regards

Marcin

  • Hi Marcin,

    If you want to receive all the messages, you can clear the UMask bit in IFxMCTL register. or change the Mask bits in IFxMSK register to “don’t care”.

    Regards,
    QJ
  • I set:

        canREG1->IF2MSK  = 0x00000000U;              // ""dont care"
        canREG1->IF2ARB  = (uint32)0x80000000U | (uint32)0x00000000U | (uint32)0x00000000U | (uint32)((uint32)((uint32)0x111U & (uint32)0x000007FFU) << (uint32)18U);
        canREG1->IF2MCTL = 0x00001080U | (uint32)0x00000400U | (uint32)0x00000000U | (uint32)8U;
        canREG1->IF2MCTL &= ~(1<<12);                  // Clear UMASK bit
        canREG1->IF2CMD  = (uint8) 0xF8U;
        canREG1->IF2NO   = 2U;

    Is it properly ?

  • But what I want ... In one MessageBox i want to receive all messages without putting ID with I want to receive.