Hi,
Is there an example of using DMA with FlexCAN on the CortexM7 in the iMX8MP. I have found a post about how to setup RX FIFO but the FIFO appears to be fixed at 6 messages whereas I am receiving 8 CAN messages every 15ms and am seeing sporadic FIFO buffer overruns.
Relevant links:
but unfortunately none of the above posts has enabled me to piece together working FlexCAN DMA code. An example would be really helpful.
Many thanks
Nick
How can I enable DMA capabilities for the CAN driver on the IMX8MPlus EVK board (Cortex-A53) running Linux? Could you please provide suggestions?
I am based on i.MX8QMPlus(i.MX8MPlus)- Target - EVK - based on Linux with CAN driver Enabled ( I am compiling the same with yocto build environment).
Now, i have to enable the DMA capabilities for CAN driver.
Could you please provide suggestions and what modifications are needed?
we are based on kernel 6.6.54 and we are using the file: https://elixir.bootlin.com/linux/v6.6.54/source/drivers/net/can/flexcan/flexcan-core.c and https://elixir.bootlin.com/linux/v6.6.54/source/drivers/net/can/flexcan/flexcan.h
Hi @nickager,