I am working on a Pynq z2 and my image is the 3.0.1, but I have faced this error also in 2.7.
When I try to run the default hdmi streaming pipeline from base overlay:
hdmi_in.configure()
hdmi_out.configure(hdmi_in.mode)
hdmi_in.start()
hdmi_out.start()
it gives me this error:
ValueError Traceback (most recent call last)
Input In [2], in <cell line: 2>()
1 hdmi_in.configure()
----> 2 hdmi_out.configure(hdmi_in.mode)
4 hdmi_in.start()
5 hdmi_out.start()
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/hierarchies.py:263, in VideoOut.configure(self, mode, pixelformat)
261 self._color.colorspace = pixelformat.out_color
262 self._pixel.bits_per_pixel = pixelformat.bits_per_pixel
--> 263 self._hdmi.mode = mode
264 self._vdma.writechannel.mode = mode
265 self._hdmi.start()
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/dvi.py:142, in HDMIOutFrontend.mode(self, value)
140 self._display.mode(_outputmodes[resolution])
141 else:
--> 142 raise ValueError(
143 "Invalid Output resolution {}x{}".format(value.width, value.height)
144 )
ValueError: Invalid Output resolution 1920x0
I am sure I have connected the hdmi properly and they work fine when I try to stream my screen to another monitor. I also tried to run a streaming video but with USB webcam and it works, so the problem is the hdmi input. Is there anything I can do to solve this problem ? Is the board broken ?
Just to mention that I’ve worked with base overlay one week ago and it started correctly, so I don’t understand where is the problem.