# KV260 read mipi frame stuck on dma, help

**URL:** <https://discuss.pynq.io/t/kv260-read-mipi-frame-stuck-on-dma-help/5347>\
**Category:** Support\
**Created:** [March 14, 2023, 11:11am UTC](https://discuss.pynq.io/t/kv260-read-mipi-frame-stuck-on-dma-help/5347 "2023-03-14T11:11:47Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![sergicuen](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sergicuen](https://discuss.pynq.io/u/sergicuen)\
**Post date:** [May 1, 2024, 5:15pm UTC](https://discuss.pynq.io/t/kv260-read-mipi-frame-stuck-on-dma-help/5347/28 "2024-05-01T17:15:08Z")

</div>

Hi @juanppalacios ,  
I used the original base overlay [GitHub - mariodruiz/Kria-PYNQ](https://github.com/mariodruiz/Kria-PYNQ.git), and some python code to reconfig the V\_proc and Pixelpacker IP.  
You can find the python code here:

> [@Kria base overlay, mipi cam5c, how to change the ColorSpaceConversion?](https://discuss.pynq.io/t/kria-base-overlay-mipi-cam5c-how-to-change-the-colorspaceconversion/6545):
>
> Hi all, I am working on the Kria base overlay (mipi\_to\_display notebook). I am trying to store a gray image via VDMA (8bits/pixel, Y channel). Using the following code: videomode = VideoMode(1280, 720, 8) mipi.configure(videomode) frame = mipi.readframe() frame.shape # (720, 1280) I get a gray image but, looking at the pynq code I see that pixel data is just written with the B channel. The reason is that v\_proc\_sys IP is configure to bypass the BGR pixels coming from the demosaic/gamma pi…

In addition, in the following post you can find the workaround of a little bug in the overlay:

> [@Kria base overlay BUG?](https://discuss.pynq.io/t/kria-base-overlay-bug/6693):
>
> Hi all, my problem is related to Kria KV260 & Base overlay ([GitHub - mariodruiz/Kria-PYNQ](https://github.com/mariodruiz/Kria-PYNQ.git)) & Vivado 2022.1. Taking a look at the MIPI of the base project, there is a Subset Converter to swap the channels. Input (MSB to LSB): R1 B1 G1 | R0 B0 G0 the swap is defined as TDATA remap string: tdata[15:0], tdata[23:16], tdata[39:24], tdata[47:40] Output (MSB to LSB): B0 G0 R0 | B1 G1 R1 So, it produces a swap between channels but also beween pixels. This can be seen in the …

Regards

---

_[View the full topic](https://discuss.pynq.io/t/kv260-read-mipi-frame-stuck-on-dma-help/5347)._
