# DMA not started

**URL:** <https://discuss.pynq.io/t/dma-not-started/4567>\
**Category:** Support\
**Created:** [August 21, 2022, 1:57pm UTC](https://discuss.pynq.io/t/dma-not-started/4567 "2022-08-21T13:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpgauser](https://avatars.discourse-cdn.com/v4/letter/f/c68b51/32.png) [@fpgauser](https://discuss.pynq.io/u/fpgauser)\
**Post date:** [August 21, 2022, 1:57pm UTC](https://discuss.pynq.io/t/dma-not-started/4567/1 "2022-08-21T13:57:20Z")

</div>

I am trying to use dma to transfer the data to zmod DAC provided by Digilent. The attached design is based on the tutorial ([https://projects.digilentinc.com/whitney-knitter/hello-zmods-on-the-eclypse-z7-99107d](https://projects.digilentinc.com/whitney-knitter/hello-zmods-on-the-eclypse-z7-99107d)). The board I am using is RFSoC 2\*2. I am using the pynq image v2.7. I attached the diagram in Vivado, register\_map before and after the code, and the python code in jupyter. I got the error ‘DMA not started’ after ‘dma.sendchannel.wait()’.  
All the related topic about similar problem in the forum didn’t work for me.  
How do I remove this error?

—python code —

from pynq import Overlay  
from pynq import MMIO  
from pynq import allocate  
import numpy as np  
ol = Overlay(‘design\_1.bit’)  
dma = ol.zmod\_AWG.axi\_dma\_0  
input\_buffer = allocate(shape=(1,), dtype=np.uint32)  
for i in range(1):  
input\_buffer[i] = i  
print(input\_buffer)  
dma.sendchannel.transfer(input\_buffer)  
dma.sendchannel.wait()

## —The error message in iPython console—

RuntimeError Traceback (most recent call last)  
 in   
----\> 1 dma.sendchannel.wait()  
2 zmod\_c.write(0x00+4,1) # start Zmod

/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/lib/dma.py in wait(self)  
203 “”"  
204 if not self.running:  
 → 205 raise RuntimeError(‘DMA channel not started’)  
206 while True:  
207 error = self.\_mmio.read(self.\_offset + 4)

RuntimeError: DMA channel not started

—vivado design—

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/3/39626e9b8075529ddf664d854034a9251a1d9998.png)  
—register\_map before transfer—  
 ![dma](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/8/8f9f76572b71ad63e4e61046a49063b0732c8816.png)  
—register\_map after transfer—  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/7/7e4b82b87f2bc87812395e0194a24c0423074884.png)

---

<div class="post-metadata">

**Author:** ![sharan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sharan](https://discuss.pynq.io/u/sharan)\
**Post date:** [April 10, 2023, 9:59am UTC](https://discuss.pynq.io/t/dma-not-started/4567/2 "2023-04-10T09:59:37Z")

</div>

@fpgauser Hey hi!! were you able to resolve the error?
