Transferring data over EIM to iMX6 using DMA

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

Transferring data over EIM to iMX6 using DMA

660 Views
sfoley
Contributor I

Hello,

I want to use SDMA to transfer data over EIM from a FIFO on a FPGA to the IMX6. I found this post https://community.nxp.com/t5/i-MX-Processors/working-SDMA-with-EIM-on-iMX6/m-p/276541 and was hoping I could get the example code mentioned by Weidong. If that example code is not available I would like to be pointed in the right direct for where I could read more documentation about SDMA with EIM.

 

Thanks,

Sean Foley

0 Kudos
2 Replies

596 Views
ceggers1
Contributor IV

Hi Sean,

I looks like you want to transfer data from a fixed address (FPGA FIFO) to a continuous range of memory. Do you know the amount of data in advance, or do you have additional handshake signals for this (like FIFO empty)? Do you want the transfer to start "by hand" or should it start automatically as soon as data is available?

Most of the existing SDMA scripts like "ap_2_mcu" or "mcu_2_app" expect that there is a "DMA request" line from the peripheral to be monitored.

regards

Christian

0 Kudos

631 Views
art
NXP Employee
NXP Employee

Hello,

You can ask Weidong directly for the code he provided.

For general information, please refer to the "SDMA API" section of the i.MX Linux Reference Maual document for the Linux BSP you use.

Best Regards,
Artur

0 Kudos