DMA access error in pynq 2.7 OS on pynq-z2 board

I am using Vivado 2020.2 and pynq 2.7 OS and python 3.6.5

I am made a block design that takes data from the DMA and dumps into the PS via the HP port.

When I initialize the DMA in the jupyter, I get the following traceback key error in the jupyter cell.

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-9-438ea17a8e6a> in <module>()
      2 czt0 = ov.AXI_CZT_AXIS_1.AXI_CZT_Controller
      3 reset_pl = ov.Reset_system.reset_gpio.channel1[0].on
----> 4 dma_channel = ov.DMA.axi_dma_0.recvchannel
      5 wr_data_count = ov.AXIS_Combine.axi_gpio_0.channel1.read
      6 rd_data_count = ov.AXIS_Combine.axi_gpio_0.channel2.read

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py in __getattr__(self, key)
    735         elif key in self._description['ip']:
    736             ipdescription = self._description['ip'][key]
--> 737             driver = ipdescription['driver'](ipdescription)
    738             setattr(self, key, driver)
    739             return driver

/usr/local/lib/python3.6/dist-packages/pynq/lib/dma.py in __init__(self, description, *args, **kwargs)
    188                                'has been deprecated and moved to '
    189                                'pynq.lib.deprecated')
--> 190         super().__init__(description=description)
    191 
    192         if 'parameters' in description and \

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py in __init__(self, description)
    600             self._gpio = {}
    601         for interrupt, details in self._interrupts.items():
--> 602             setattr(self, interrupt, Interrupt(details['fullpath']))
    603         for gpio, entry in self._gpio.items():
    604             gpio_number = GPIO.get_gpio_pin(entry['index'])

/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py in __init__(self, pinname)
     96         self.number = PL.interrupt_pins[pinname]['index']
     97         self.parent = weakref.ref(
---> 98             _InterruptController.get_controller(parentname))
     99         self.event = asyncio.Event()
    100         self.waiting = False

/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py in get_controller(name)
    157             if con.name == name:
    158                 return con
--> 159         ret = _InterruptController(name)
    160         _InterruptController._controllers.append(ret)
    161         return ret

/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py in __init__(self, name)
    175         """
    176         self.name = name
--> 177         self.mmio = MMIO(PL.ip_dict[name]['phys_addr'], 32)
    178         self.wait_handles = [[] for _ in range(32)]
    179         self.event_number = 0

KeyError: ''

@abdyoyo

List all the blocks of the overlay to us and see AXI-Lite of the DMA and DMA engine.

ENJOY~

1 Like