2020-11-12 08:18 AM
Hi,
I can't find any document that defines the Filter and Mask for FlexCAN, so I post a question about it.
I think the filter only passes frames that contain exact ID as the ID in ID mask field. Am I right?
Best regards
Yuechuan Lin
2022-03-21 04:18 AM
Hi,
YES you are right.
The CAN controller is configured to use the RX global mask that is set to 0x0FFFFFFF
Best regards
Domenico
2022-12-07 12:54 AM
Is possible to change or just check this RX global mask?
Because i have a problem in standard RX that seams that filter mask is not 0x7FF , but 0x3FF.
I have tested in this way:
RX ID= 0x1
up to message id 0x201 -> 0b 0010 0000 0001 filter works
if i send message id 0x401 ->0b 0100 0000 0001 filter not works, because i i receive the message.
Best Regards,
Patrick
2022-12-07 01:40 AM
I have solved replacing in can_lld.h
canp->flexcan->RXGMASK.R = 0x0FFFFFFFU;
with
canp->flexcan->RXGMASK.R = 0xFFFFFFFFU;