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.

CCS/TMS320F28334: How receive multiple CAN-IDs to one Mailbox?

Part Number: TMS320F28334

Tool/software: Code Composer Studio

Hello,

I need to receive more than 32 CAN-IDs, so I have trying to assign multiple CAN-IDs to one mailbox.

CAN-ID are 0xDFFFF100 and 0x1DFFFF101 (omitted for simplicity, described only 2 ID).

Initialized as below;

EcanaLAMRegs.LAM0.all = 0;

EcanaLAMRegs.LAM0.bit.LAMI = 1;

EcanaLAMRegs.LAM0.bit.LAM_L = 0xf;

EcanaMboxes.MBOX0.MSGID.all = 0xDFFFF100;

EcanaLAMRegs.LAM1.all = 0;

EcanaLAMRegs.LAM1.bit.LAMI = 1;

EcanaLAMRegs.LAM1.bit.LAM_L = 0xf;

EcanaMboxes.MBOX1.MSGID.all = 0xDFFFF100;

Then, I receive as below:

receive_bits = ECanaRegs.CANRMP.all & CAN_RECV_MASK;

EcanaRegs.CANRMP.all = receive_bits;

if ((receive_bits & BIT0) != 0) {

// Analyze data (1)

}

if ((receive_bits & BIT1) != 0 ) {

// Analyze data (2)

}

I want to put 0xDFFFF100 and 0xDFFFF101 in each MBOX but not set to Analyze data (1), set only Analyze data (2) whatever  0xDFFFF100  or 0xDFFFF101.

What are the missing setting?

Thank you,