Forum Discussion

DSchm28's avatar
DSchm28
Icon for New Contributor rankNew Contributor
6 years ago

How to initialize the DMA of the HPS?

Hi,

I use an Cyclon V SoC FPGA (on an DE10-NANO). I would like the to use the integrated DMA Controller from HPS (no IP Core on Platform Designer) to write Data from my own buffer to the HPS2FPGA . Have anybody an Example how to inizialise the DMA Controller? Thanks!

3 Replies

  • DSchm28's avatar
    DSchm28
    Icon for New Contributor rankNew Contributor

    Thank you for your first answer. But I would like to copy data from Buffer on HPS to another/other buffer on HPS and the HPS has an DMA Controller - why should I use the FPGA DMA (speed is not so interesting)?

    I have bind in the libs alt_dma.h and alt_dma_common into my main.c file. So every time when I uses fuktion from that libs (fokused alt_dma.h) I get linker error. Why doesn't work?

    Thanks for your answer.

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello sir,

    Data transfer is needed usually between FPGA and HPS, this is what we call it DataMover Application. FPGA mSGDMA will be more advanced and has more features that can support the data transfer between HPS and FPGA. And this is the application that we have..

    In your case, you are looking for a data move application from HPS to HPS through buffers, where the FPGA DMA is not helpful. Unfortunately, we dont have such application.

    You might refer to the link I sent earlier to help you find a closer application to fix your design issue. Please note in this design it considers the FPGA as destination, in your case, you need to change it to another destination (SDRAM or Buffer).

    Thank you.