Forum Discussion

aurec2's avatar
aurec2
Icon for New Contributor rankNew Contributor
5 years ago

For the driver of a Modular Scatter-Gather DMA I need the header file "modular_sgdma_dispatcher.h". How can I get it, or what is the correct way to use "alt_msgdma_open" ?

For a driver for the Modular Scatter-Gather DMA, I need the function "alt_msgdma_open". According to the Embedded Peripherals IP User Guide 25-48 (2016.12.19) the above mentioned include file is necessary.

However, "modular_sgdma_dispatcher.h" is NOT part of the IP-Installation in:

"\intelFPGA_pro\16.1\ip\altera\altera_msgdma"

I would be very grateful for a tip on how to get the mentioned file. Or if I could be pointed to an example of a mSGDMA Driver for a bare metal application.

Many thanks

Andreas

I am using SoCEDS16.1, for Cyclone V.

4 Replies

  • Hi Andreas,

    Firstly, have you tried using latest Quartus version for Cyclone V which would be the Quartus std 18.1 and SoC EDS 18.1?

    Did you see any changes using the latest version?

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

    Hi el.ing,

    many thanks for your reply. I have been using the entire toolchain (i.e. Quartus, bsp-editor, arm-ds5 builder, etc.) of generation 16.1, because I was led to believe that newer versions of the toolchain dont fully support cyclone V devices (notably in terms of the pre-loader and boot-loader generation ). I re-installed version16.1, but the header is still missing. According to the documentation the msgdma should be available on version 16.1.

    Allow me to depict my goal using the msgdma (Memory-Mapped to Streaming)

    An FPGA-Application is supposed to consume data from the msgdma-streaming source. Problem: On the HPS I cannot "dump" the data into the msgdma, since I cannot use the necessary functions (alt_msgdma_open,alt_msgdma_construct_standard_mm_to_st_descriptor, alt_msgdma_descriptor_sync_transfer) due the missing header file.

    How can I use the msgdma for cyclone V devices? I would be very grateful for a further tip.

    Thanks

    Andreas

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

    Hi el.ign

    many thanks for your answer and the links. I will give it a try.

    Andreas