MCU: S32K144
Hi,
I have imported the example project "S32K144_Project_FlexCan" in the S32 IDE. I see that the example shows how to accept data from a particular CAN ID (incoming messages). I would like to know how do we configure the registers to accept messages from any CAN ID (incoming).
I see there are three relevant register settings in FlexCAN:
1. RXMGMASK (Rx Mailboxes Global Mask register)
2. RXIMRx (Rx Individual Mask registers)
3. CAN ID field of the MB Message Box Structure
In the given example, the registers RXMGMASK is set to 0xFFFF indicating that all bits of the incoming CAN Message ID needs to be considered. Same for RXIMRx also. In this case, when you configure MB CAN ID as (say) 555, then incoming messages with CAN ID 555 will only be allowed to be received by the Rx MB.
What if I want the Rx MB to receive any CAN message bearing any CAN ID? Is the required setting 'RXMGMASK=0x0000' & 'RXIMRx=0x0000'?
If yes, then what should we put in the Rx MB CAN ID field?
NOTE:
1. I am using standard CAN ID only
2. CAN FD (Flexible Data Rate) not used
3. I am using FlexCAN0 of the MCU
Thanks
Regards
Soumyajit
Bosch, Bangalore