hallo, I need your help to set CAN mask for MCU S32R274.
Be aware the bits corresponding from standard ID from the mask are between 3 and 13 as MSB, second the RXMGMASK should be written only in freeze mode. so the mask should be RXMGMASK = 0x0FFC0000 and IRMQ=0
Thanks for your apply. It's very help. And I have another question about RXMGMASK , how to set RXMGMASK to special MB[i]?
To set individual masking for a desired MB no you need to set IRMQ to 1 from MCR register this need to be done in freeze mode. If RxFIFO is disabled then is a 1 to 1 correspondence between CAN_RXIMR and MB ID filter. If RxFIFO enable then watch on the description of RFFN bitfield from CTRL2 register of FlexCAN to see the correspondence between RXIMR and RXFGMASK registers and filters IDs. All this information is from Reference Manual. RM.