FDCAN ITR receive trigger choice

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

FDCAN ITR receive trigger choice

Post by alex31 »

Hello,

On the FDCAN (v1, v2) the receive ISR is triggered by fifo full event (R[01]FE flag)
On the devices with a depth of 32, this introduce significant lag, and chance to loose messages, (good thing is that keep ISR overhead low).

In my use case, I prefer to use new message event (R[01]NE) flag, ISR overhead is non measurable, and lag limitation resolve timout problem.


Can the driver be modified to make it a config choice ?
Another event source that can be used is the watermark level interrupt, where one can choose at which fifo level the IT is fired.

Alexandre
ych
Posts: 45
Joined: Tue Mar 03, 2015 11:38 pm
Has thanked: 17 times
Been thanked: 11 times

Re: FDCAN ITR receive trigger choice

Post by ych »

Hello, Alexandre

It seems that this proposal is implemented with ChibiOS trunk (rev 16769).

Yurii
Post Reply