My Callback fuction :
void CAN_CallBack(uint8_t instance,
flexcan_event_type_t eventType,
uint32_t buffIdx,
struct FlexCANState *driverState)
{
if (eventType == FLEXCAN_EVENT_RXFIFO_COMPLETE)
{
CAN_Analyse(&gsCAN_RXMsg);
FLEXCAN_DRV_Receive(INST_CANCOM1, 7, &gsCAN_RXMsg);
}
}
when it recieve more than 8 frames data at the same time, the eventType will be FLEXCAN_EVENT_RXFIFO_WARNING, and then FLEXCAN_EVENT_RXFIFO_OVERFLOW.
How to configure FlexCAN to avoid FLEXCAN_EVENT_RXFIFO_WARNING ?