# Problem Using VDMA Driver With Only Write Channel

**URL:** <https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918>\
**Category:** Support\
**Created:** [February 6, 2020, 7:54pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918 "2020-02-06T19:54:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laplace](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Laplace](https://discuss.pynq.io/u/Laplace)\
**Post date:** [February 6, 2020, 7:54pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/1 "2020-02-06T19:54:07Z")

</div>

I am trying to use the vdma driver with only the write channel enable. However it complain of not finding the s2mm\_introut. Is there a way that I can use the vdma driver with only the write channel?

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [February 14, 2020, 5:09pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/2 "2020-02-14T17:09:12Z")

</div>

I have the same problem, did you ever find a solution?

Darth

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [February 14, 2020, 7:15pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/4 "2020-02-14T19:15:39Z")

</div>

Can you confirm that you have not connected `s2mm_introut`? Maybe a block diagram would be better.

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [February 16, 2020, 12:35pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/5 "2020-02-16T12:35:10Z")

</div>

Hi,

I added read / write interefaces knowing i didnt need S\_AXIS\_S2MM as i was streaming anything into this block. The purpose of this block is to allow me to write from the PS, a frame captured by a webcam… and then send it thourgh an image processing pipeline. I have connected s2mm\_introut as can be seen.

Also notice, i should have the master interface set to \<none/free running\> for sync purposes.

Darth

 ![Capture1](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/8a681be25506a3cadf84ebcfbc5355e3ac19253f.png) ![Capture2](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/9eda499422f7aeac1e1114416451ecaf5c95a6f1.png) ![Capture3](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/b5b3f409ae35d2033c63354ed95e5741651e0fb2.png) ![Capture4](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/aad629298e521a5755816dba6f205227641eea7b.png)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [February 17, 2020, 5:57pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/6 "2020-02-17T17:57:34Z")

</div>

One comment is that make sure you have connected your interrupt pins like demonstrated in the base overlay (through that system interrupt controller). That way the interrupt dictionary might get parsed properly. I am not sure if this is the real reason, but you can give it a try.

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [February 19, 2020, 8:05pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/7 "2020-02-19T20:05:56Z")

</div>

Hi Rock

I have checked and the IRQ is wired up ok.

Do you have any examples of where you write to a VDMA block from the PS, same with a NP array containing a webcam captured image. I think the issue i have is related to how th eVMDA block is set up.

If you look at example 3 in this link… this is the sort of thing i wouild like to do…

[https://forums.xilinx.com/t5/Design-and-Debug-Techniques-Blog/Video-Series-26-Examples-of-advanced-uses-of-the-AXI-VDMA-IP/ba-p/947566](https://forums.xilinx.com/t5/Design-and-Debug-Techniques-Blog/Video-Series-26-Examples-of-advanced-uses-of-the-AXI-VDMA-IP/ba-p/947566)

Basically have a read only channel …

Darth

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [February 21, 2020, 4:13am UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/8 "2020-02-21T04:13:38Z")

</div>

I checked that page you mentioned - Example 3 does not seem to connect any interrupt? Maybe first thing you want to try is to remove the connection of the interrupt coming out of VDMA block. I have a feeling that it might just work.

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [February 21, 2020, 11:47am UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/9 "2020-02-21T11:47:48Z")

</div>

Tried it again,

- Read only channel (write disabled)
- No interrupts connected up (just like example 3 in the above Xilinx link)

Still failed…

I suspect the VMDA driver expect that both read and write channels are enabled as well as the appropriate IRQs wired. This is a real pain, as i thought there would be a need to do what i am trying to do, and inject captured webcam video into the PL for processing.

 ![Capture](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/d468ddc30192648748dca338435d8554b04c06c3.png) ![Capture2](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/99ca09fc1bac93c3110f9bcacee5a410a9233c7a.png)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [February 23, 2020, 6:10am UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/10 "2020-02-23T06:10:51Z")

</div>

OK. I see what you mean by that. Can you hook up the interrupt as you used to, and comment out this line in driver code:

> <https://github.com/yunqu/PYNQ/blob/a9769e76b30c6fbc307b4c3f8bb5fb40281471fc/pynq/lib/video/dma.py#L590>

The code on your board should be located at `/home/xilinx/pynq/lib/video/dma.py`.  
I think what you suggested might be a good feature to add in the future release - allowing users to use only read or write channels conditionally. But for your debug purpose for now, you can give it a try by changing that dma.py.

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [March 7, 2020, 3:15pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/11 "2020-03-07T15:15:57Z")

</div>

Hi Rock,

Just letting you know ive fixed the issue. Can you make sure the issue is considered for the next release for Pynq.

See attached… dma.py modification. Will upload the pynq notebook in a separate post.

In summary i can now write from the webcam into the PL with a write only VMDA block, do some image processing and then read it back into the PS and display it.

Thanks for your help

Darth

 ![Capture](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/920890a70f7dddf74c53702d567945d2fa253a35.png)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [March 9, 2020, 3:59pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/12 "2020-03-09T15:59:14Z")

</div>

Awesome! You can also open a pull request if you want to.

---

<div class="post-metadata">

**Author:** ![DarthSimpson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/darthsimpson/32/743_2.png) [@DarthSimpson](https://discuss.pynq.io/u/DarthSimpson)\
**Post date:** [March 9, 2020, 4:02pm UTC](https://discuss.pynq.io/t/problem-using-vdma-driver-with-only-write-channel/918/13 "2020-03-09T16:02:37Z")

</div>

Thanks Rock. Sorry for asking a silly question, but how / where do you setup a pull request?
