AnsweredAssumed Answered

FlexCAN Reception Configuration

Question asked by Nitin verma on Oct 26, 2016
Latest reply on Oct 27, 2016 by Petr Stancik


I need strong advice regarding FlexCAN configuration.It seems I have no problem with transmission, but I have huge problems with reception.I am using S32K144 evaluation board.It looks like it receives only one Message Buffer at one time. What I mean is we have to configure MB for a specific ID and after the reception of that Message we can configure other MB with different ID i.e kind of cyclic reception.


These are the two API's which I am using for Rx reception 
FLEXCAN_DRV_ConfigRxMb(FSL_CAN, 0UL, &Rx_Info_Cfg, 0x0A);
FLEXCAN_DRV_RxMessageBuffer(FSL_CAN, 0UL, &RXMsgBuffer);
Here you can see that MB0 is configured for ID 0x0A and reception API is called.
What if I have more than one ID to receive? How these API will be called and configured?


My use case is the following:

1. I have 8 ID's for reception and for that MB0 - MB7  are used for reception . Idea is to catch ALL  8 incoming frames(ID type is standard )

2. RXFIFO should NOT be used.


1. Is it possible to configure FlexCAN to achieve this behavior?