Dear Support team,
Is there any example for CAN DMA using SDK's? I didn't find any CAN based on DMA...I am having some trouble in making it to work.
As far as I know there is no FlexCAN SDK example using the DMA.
However the usage should be similar as for the interrupt mode. In the Component inspector you configure the module for RXFIFO and DMA mode.
In the main function you need call DMA_init just before FlexCAN_init, as below
/* Initialize eDMA module & channels */
EDMA_DRV_Init(&dmaController1_State, &dmaController1_InitConfig0, edmaChnStateArray, edmaChnConfigArray, EDMA_CONFIGURED_CHANNELS_COUNT);
/* Initialize FlexCAN driver */
FLEXCAN_DRV_Init(INST_CANCOM1, &canCom1_State, &canCom1_InitConfig0);
Nothing more is needed.
Finaly you need to configure RXFIFO using FLEXCAN_DRV_ConfigRxFifo and call FLEXCAN_DRV_RxFifo to start receiving CAN frame using the Rx FIFO. This function must be called again after you receive data to allow another data to be received.
Retrieving data ...