Flexcan Overrun problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexcan Overrun problem

1,202 Views
Koen
Contributor I
Hi,
 
I'am busy with the development of a CAN driver for the CF5329.
Message buffer 0-14 are set to receive and buffer 15 is my TX buffer.
When I receive a message, it is always posted into the message buffer 0. (No masking is active)
Is there a way to use all the receive buffers.
 
When my timer intu routine takes to long (300µs) can messages are lost in MBUF0. The overrun flag is set. But the other message buffers are still empty.
I use the can bus with a speed of 500k.
Everything is working fine but when my timer intu function takes more time than the time of a can frame, can frames are lost.....
 
Thanks in advance
Labels (1)
0 Kudos
1 Reply

313 Views
francois_boucha
Contributor III
Hi,

In order to use your 15 MBs, you may disable one by one upon each frames reception.  This way, let's say 10 frames arrive into your FlexCAN, they'll go into MB 0 to 9.  After you can read them and reactivate them.


0 Kudos