dspic33ep256mc506 can bus fifo overflow handling?
I have 8 buffer locations for can receive in fifo mode. I did not see any overflow for a long test period but I want to handle every situation as usual. My test program is MCC based. I'm calling CAN1_Receive() periodically and if function returns success, I loop until there is no message to read which should empty the fifo. But if there is an overflow situation there seems to be no handle situation in MCC code:
if(C1INTFbits.RBOVIF == 1)
C1INTFbits.RBOVIF = 0;
In an overflow situation the message is ignored but there is no FIFO flushing, RXFULn or RXOVFn flag clearing.
What should I do to properly handle it? Thanks.