AnsweredAssumed Answered

FlexCAN Reception for any number of incoming message ID's

Question asked by Nitin verma on Feb 14, 2017
Latest reply on Feb 15, 2017 by Nitin verma

We are working on Evaluation Board S32K144. I just want to receive the data for whatever incoming Id without Rx FIFO(Id's are unknown).
I have done with the single Id configuration for particular message buffer and its working fine.

FLEXCAN_DRV_ConfigRxMb(FSL_CAN0, 1UL, &gstr_vRx_Info_Cfg_CAN, 0x0au);

FLEXCAN_DRV_ConfigRxMb(FSL_CAN0, 2UL, &gstr_vRx_Info_Cfg_CAN, 0x0bu);


FLEXCAN_DRV_RxMessageBuffer(FSL_CAN0, 1UL, &gastr_vRXMsgBuffer[0]);

FLEXCAN_DRV_RxMessageBuffer(FSL_CAN0, 2UL, &gastr_vRXMsgBuffer[1]);


These are the APIs which I have used, as you can see MB1 is configured for ID 0x0A and MB2 is configured for ID 0x0B and we get the interrupt only for these mentioned ID's and able to receive data.Interrupt won't be generated for any other ID's.


Now I have hundred,thousands of unknown incoming IDs What changes do I need to make,interrupt should be generated for all incoming ID's, with the above approach its seems impossible to achieve the task.


Kindly let me know what needs to be done with limited number of message buffer and more number of incoming ID's.



Nitin verma