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.

AWR1642: How to receive multi-ID using MCAN?

Part Number: AWR1642
Other Parts Discussed in Thread: MMWAVE-SDK

Hello,

Using the MCAN driver in the mmwave_sdk, I can receive CAN messages for a single CAN ID, while all other IDs are filtered out. However, I can't work out any way to receive CAN messages for more than 1 CAN ID. I have tried modifying the following lines in canfd.c, hoping to use it with either range filter or dual filter, but couldn't get them to work.

stdMsgIdFilter.sfid1 = ptrCanMsgObj->msgId & STD_MSGID_MASK;
stdMsgIdFilter.sfid2 = (ptrCanMsgObj->msgId + 1) & STD_MSGID_MASK;
stdMsgIdFilter.sfec = 0x2U;
stdMsgIdFilter.sft = 0x1U;
MCAN_addStdMsgIDFilter(baseAddr, i, &stdMsgIdFilter);

My question is how should I set the filter parameters for dual filter and range filter, respectively?

Thanks,

- j