i'm using s32k312 chip.
i tried to Receive CAN message which has specific id value.
from now on, i used flowing paragraph on the CAN initialize() block
FlexCAN_Ip_ConfigRxMb(INST_FLEXCAN_2, CAN2_RXMAILBOX, &rx_info, 0x3c2ul);
I tried to get multiple CAN ID values messages from one RX MAILBOX, but it didn't work as expected.(not only 0x3c2ul )
I know that if I use 0x00, can receive messages of all CAN ID values in mcu, but it doesn't work properly.
(FlexCAN_Ip_ConfigRxMb(INST_FLEXCAN_2, CAN2_RXMAILBOX, &rx_info, 0x00);)
Please share how to receive multi CAN ID values(range or anyway) and to receive all of the CAN ID message.
Thank you.
you can take a look at this routine by petr.
also you can take a look at this article regarding how to set flexcan mask bit for S32K1.(this is for S32K1 but also amolst same for S32K3)
https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-FlexCAN-Mask-Setting-Demo/ta-p/1519753