# Kria-PYNQ DMA retrive always different results

**URL:** <https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097>\
**Category:** Support\
**Created:** [March 2, 2025, 8:57am UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097 "2025-03-02T08:57:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian-Conti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/christian-conti/32/6724_2.png) [@Christian-Conti](https://discuss.pynq.io/u/Christian-Conti)\
**Post date:** [March 2, 2025, 8:57am UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/1 "2025-03-02T08:57:53Z")

</div>

Hi everyone,

I am working with a Xilinx Kria KV260 with PYNQ version 3.0.1. I have created a bitstream that is functional and it is works correctly (both simulation and on the FPGA), but after I loaded a second bitstream and then again the first one the design stopped working, indeed, the FPGA responds with wrong result and each time it is different, even if my desgin should always produce the same result.

The accelerator is connected to the PS through an AXI stream interface, any possible idea of why the system suddently stopped working? Even after a power reset of the board the results are wrong, so i tryed on another board but after the same procedure always my second board broke.  
It can be caused from my PYNQ software?

To download the bitstream i proceed in the following way:

1. PL.reset()
2. design = Overlay(bitsream.bit)
3. PL.reset() # again

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 3, 2025, 12:10pm UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/2 "2025-03-03T12:10:04Z")

</div>

Hi @Christian-Conti,

Welcome to the PYNQ community.

> The accelerator is connected to the PS through an AXI stream interface

The PS does not have stream interfaces. Are you using a DMA?

Does the design work properly when you do not load a different overlay?

Mario

---

<div class="post-metadata">

**Author:** ![Christian-Conti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/christian-conti/32/6724_2.png) [@Christian-Conti](https://discuss.pynq.io/u/Christian-Conti)\
**Post date:** [March 3, 2025, 3:08pm UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/3 "2025-03-03T15:08:51Z")

</div>

Yes, my design is connected to the DMA and Vivado’s IP.

After this _“incident,”_ the design no longer works properly, even after disconnecting the board from AC power and reconnecting it after some time. It still doesn’t function correctly.

I’m unsure if there’s a command in PYNQ that can clear all cached information or reset the system in some way.

Christian

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 3, 2025, 6:14pm UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/4 "2025-03-03T18:14:44Z")

</div>

Ok, I see. I think I see the problem now. You are not supposed to run `PL.reset()` after you download the overlay. `Overlay(bitstream.bit)`

Mario

---

<div class="post-metadata">

**Author:** ![Christian-Conti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/christian-conti/32/6724_2.png) [@Christian-Conti](https://discuss.pynq.io/u/Christian-Conti)\
**Post date:** [March 4, 2025, 4:45pm UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/5 "2025-03-04T16:45:06Z")

</div>

Hi, thanks for the suggestion, unfortunately I have removed it and the issue still persist.  
Even after removing it and reboot the board.

Christian

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 5, 2025, 8:08am UTC](https://discuss.pynq.io/t/kria-pynq-dma-retrive-always-different-results/8097/6 "2025-03-05T08:08:56Z")

</div>

Can you please provide more information about what the overlay does?
