2025-07-15 10:33 PM
Hello ST Community,
I'm using the STM32MP257F-DK board with the Waveshare IMX219 camera (connected via MIPI CSI2).
I've configured the device tree for the sensor, and the camera appears correctly under /dev/v4l-subdev7. I’m trying to capture raw video using:
v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=10 --stream-to=out.raw
But I get the following error:
[ dcmipp 48030000.dcmipp: failed to start streaming (-22) ]
VIDIOC_STREAMON returned -1 (Invalid argument)
Device tree loads fine
IMX219 is detected
Sensor controls are visible via v4l2-ctl -L
Streaming fails with error -22 from DCMIPP
What could cause this Invalid argument during streaming?
Is there any resolution/format restriction for DCMIPP?
Any working example for IMX219 + STM32MP25 + DCMIPP would help a lot
Thanks in advance!
2025-07-15 11:47 PM
Hello @Dhanu_bhosale ,
Did you follow this wiki page for DCMIPP configuration ? https://wiki.st.com/stm32mpu/wiki/STM32MP2_V4L2_camera_overview#Grab_a_frame_from_a_RAW_sensor--with_ISP_demosaicing
Can you share your own configuration regarding your sensor (I am not familiar with this particular camera) ?
The possible root cause could be a wrong alignment between element of the complete pipe (Cam + CSI + DCMIPP subdevs) in term of size / pixel format. You can check the complete configuration applied thanks to this command here: https://wiki.st.com/stm32mpu/wiki/STM32MP2_V4L2_camera_overview#Get_the_topology_of_the_camera_subsystem
Launch this command after your overall configuration, and check the complete path with format negotiated and so on. Do not hesitate to share these inputs if you are still blocked.
Kind regards,
Erwan.