# Load data to IP via DMA

**URL:** <https://discuss.pynq.io/t/load-data-to-ip-via-dma/805>\
**Category:** Support\
**Created:** [December 29, 2019, 1:13pm UTC](https://discuss.pynq.io/t/load-data-to-ip-via-dma/805 "2019-12-29T13:13:48Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [January 31, 2020, 10:25pm UTC](https://discuss.pynq.io/t/load-data-to-ip-via-dma/805/21 "2020-01-31T22:25:53Z")

</div>

@Jia-Ming_Lin I tested your design, there is nothing wrong with the hardware. But I think you used wrong buffer size in your software. Please change your `KERNEL_DIM` to 3, since your HLS IP has that parameter.

```python
# model
KERNEL_DIM = 3

```

You can also try my notebook + project if you want:

1. Reboot your board.
2. Move the 3 files attached files into one folder under jupyter\_notebooks.
3. Run.  
[docompute.zip](https://discuss.pynq.io/uploads/short-url/jd575x1xwEzlUjrBiST71mHSvop.zip) (243.3 KB)

I have the tcl files zipped. I am using 2019.1 in the entire flow.  
[docompute\_overlay.zip](https://discuss.pynq.io/uploads/short-url/3BtPqAGX0r9oFiRGmHKXZY8acms.zip) (12.1 KB)

---

<div class="post-metadata">

**Author:** ![Jia-Ming\_Lin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/jia-ming_lin/32/338_2.png) [@Jia-Ming\_Lin](https://discuss.pynq.io/u/Jia-Ming_Lin)\
**Post date:** [February 1, 2020, 4:24am UTC](https://discuss.pynq.io/t/load-data-to-ip-via-dma/805/22 "2020-02-01T04:24:50Z")

</div>

Hi @rock,  
Thank you for the kindly help, it works now.

---

<div class="post-metadata">

**Author:** ![dimiter](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dimiter](https://discuss.pynq.io/u/dimiter)\
**Post date:** [February 14, 2020, 12:49am UTC](https://discuss.pynq.io/t/load-data-to-ip-via-dma/805/23 "2020-02-14T00:49:20Z")

</div>

Just to update this.

I was building the Vivado HW in 2018.3 and running the .tcl file in PYNQ V2.5. This does not work since the DMA IP has been updated. It gets stuck. Not sure of the low level details but it does not work.  
So the solution was to install 2019.1 and update the design and then re-export the .hwh and bit file. Now it works.

[Previous page](https://discuss.pynq.io/t/load-data-to-ip-via-dma/805.md?page=1)
