PCAM 5c with Kria KV260

Hello everyone,
I am new to the Pynq environment and would appreciate your help. I am trying to connect the Diligent PCam5C with my Kria KV260 board and use the supplied notebook mipi_to_displayport, but it seemed to get stuck in a loop at this point
“frame = mipi.readframe()”

I further referenced and tried to use the notebook suggested by user “cking” at the end of this forum forum highlighting new notebook, but that seemed to get stuck on this part as well
image

Would really appreciate any help and feedback

2 Likes

Hi,
I am using this branch and PCam5C works fine: GitHub - mariodruiz/Kria-PYNQ at 2022.1
There is a little bug in the image acquisition pipeline that is reported here:
Kria base overlay BUG?
Good luck

1 Like

Did your setup.py throw any errors by any chance?
Update: installed 2022.1 succesfully but mipi_to_display.ipynb still hangs at

RuntimeError: PCam 5C cannot be initialized

Any pointers?

Hi @juanppalacios,
I re-implemented the base overlay using the MarioRuiz branch and all worked fine.
Maybe your cam is not properly connected.
good luck

Hi,

I confirmed that the MIPI camera works using the smartcam app so I can rule out hardware being an issue. Did you install any firmware updates by chance or change any of the Kria-PYNQ 2022.1 setup files? I have seen that we might need to modify the dtsi file to include the i2c driver during runtime but not exactly sure how to do this. What steps did you take to “re-implement” the base overlay?

Many thanks

Hi,
I followed the steps in the Mario Ruiz branch (remember to update the PYNQ installation in the Kria: Step2).
Also be sure the .dtbo file, which adds the i2c to the device tree, is included in the jupyter base directory in addition to the .bit and .hwh files.

regards