Cyclone V HPS DMAC usage

Hi @all,

currently I try to understand how to use the internal DMAC of the HPS. In my project I need to copy chunks of data (<1KByte) from my Avalon-MM Slave device to a buffer in my kernel module space. I’ve read about using an additional DMA controller in qsys and go over to let this DMA put the data directly into an SDRAM interface. My goal is not to preshrink the available space for the kernel to administer.

Can anybody point me to the right tutorial using the internal DMAC?

Regards

Aero

I’m assuming, the whole story starts with the alt_dma.h approach. Inside I’ve seen the basics to compile the code used by the DMAC. There I come to another problem, if I build my kernel module I can’t make use of the alt_dma.h and hwlib.h files because it is interfering with my linaro-gcc setup. Do I have to build the alt_dma stuff by myself?

Regards

Aero