iMX8MP FlexCAN DMA Example

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

iMX8MP FlexCAN DMA Example

538 Views
nickager
Contributor II

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

 

0 Kudos
Reply
1 Reply

505 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @nickager,

 
I hope you are doing well
 
Is there an example of using DMA with FlexCAN on the CortexM7 in the iMX8MP
=> Please refer to the drivers/fsl_flexcan.c file from the SDK of IMX8M Plus.
The void FLEXCAN_EnableRxFifoDMA() function Enables or disables the FlexCAN Legacy/Enhanced Rx FIFO DMA request. 
 
Please refer to the MCUXpresso SDK Builder to download the latest version of the SDK.
 
Thanks & Regards,
Sanket Parekh
0 Kudos
Reply