Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto setup continuous DMA transfers? #143

Open
dayanola opened this issue Jul 21, 2022 · 1 comment
Open

Howto setup continuous DMA transfers? #143

dayanola opened this issue Jul 21, 2022 · 1 comment

Comments

@dayanola
Copy link

I would like my application to setup non-stop continuous DMA transfers until the user hits "CTRL-C"
Target is to capture data all the time and run for a unknown period of time.
Since the time the application should run is unknown, break the DMA transfers to managable chunks of 1 MB
That is:

  1. setup 2 DMA transfers of 1 MB
  2. once the first DMA transfer is completed , setup a third transfer of 1 MB
  3. Keep submitting a new request on completion callback

System setup:

  1. 2 RX DMA channels from FPGA to APU
  2. oneway DMA transfers work on both AXI DMA channels.

How would I setup onway transfers to achieve this?

@ccasas777
Copy link

If I don't miss your question, you can create a thread to do a while loop of oneway transfer.
notice: if you set the last flag of the RX oneway transfer API: True, you would never need the callback function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants