I am having a hard time getting the FlexCAN module to filter out messages that do not match the programmed ID in the mailbox.
In my example I am using extended CAN IDs and the RXMGMASK register as the filter.
I set the following registers for reception:
- RXMGMASK to 0x1FFFFFFF
- MB.ID = CAN_ID_EXT(0x1A5)
- MB.CS[CODE] = 0x4
- MB.CS[IDE] = 1
I am using the Kvaser CAN King software to send messages to the UUT.
I would expect only messages with CAN ID of 0x1A5 to be received, however all CAN messages are received regardless of the ID value.
I have read the matching process section of the reference manual a dozen times now and do not understand what I am missing.
Any help would be appreciated.