Results 1 to 1 of 1

Thread: HPS-to-FPGA DMA Interrupt

  1. #1
    Join Date
    Oct 2017
    Rep Power

    Default HPS-to-FPGA DMA Interrupt

    Hi there,

    I am working with the Cyclone V and my goal is to transfer Data with the HPS-DMA-Controller (DMA330) and receive an "interrupt" in the FPGA on completion.

    The data transfer is already functioning. I configured the DMA-Controller via the DMAengine-API:

    tx = dma_dev->device_prep_dma_memcpy(dma_channel, dma_dst_addr, dma_src_addr, SDMA_BUF_SIZE, DMA_PREP_INTERRUPT );
    cookie = dmaengine_submit(tx);

    However, I do not receive the interrupt in the FPGA.

    I checked the HPS-to-FPGA-interrupt in Qsys. Which gave me 8 Interrupt lines corresponding to 8 DMA-channels in the DMAC.
    One thing that is not clear to me, that the DMAengine-API "offers" me 32 DMA channels while there are only 8 "physical" DMA-channels.
    How can that be?
    Currently I am using the API-channel nr. 7 and expecting the interrupt on the physical channel nr 7.
    I did a full recompile including SPL and U-boot with Buildroot.

    I would like to narrow this down. I guess either
    - there is no interrupt sent ( descriptor/ DMA-Controller not properly configured)
    - it does not reach the FPGA ( I am missing a step where this HPS-to-FPGA Interrupt connections have to be enabled)
    - I am listening on the wrong DMA-channel-interrupt

    Do you have an Idea what is going wrong here or how to proceed?
    Do you know any documentation about the HPS-to-FPGA Interrupts other than the "Cyclone V Hard Processor System
    Technical Reference Manual" ?

    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: November 20th, 2016, 05:48 PM
  2. Help with FPGA-HPS Interrupt on Baremetal Application
    By tmkims in forum SoC Baremetal and Hardware Libraries
    Replies: 1
    Last Post: February 5th, 2015, 10:38 AM
  3. To handle interrupt from FPGA PB
    By gxk in forum SoC Device Discussion
    Replies: 6
    Last Post: July 24th, 2014, 12:59 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts