Flexcan Overrun problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Flexcan Overrun problem

1,711件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

822件の閲覧回数
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 件の賞賛
返信