2025-08-26 3:51 AM
Hello,
I'm trying to port the ST IMX335 camera driver middleware to work with the RPi 2 IMX219. Everything works well with the IMX335, however after adjusting to reflect the IMX219 registers I get no image data and a Lane 0& 1 control error flag as soon as I enable streaming.
I've switched to using Dump Pipe 0 and reduced the CSI speed but it made no difference.
I'm using binning and a reduced ROI to reduce the amount of data coming off the camera.
Has anyone has a similar issue?
Thanks
2025-09-15 3:40 AM - edited 2025-09-15 3:41 AM
Hello @EmbeddedChris ;
What CSI speed are you using?
First of all, I recommend you to verify the I2C communication with the IMX219 sensor.
In the case of STM32N6, and according page 82 of the IMX219 datasheet table "clock setting example", only the 3rd column is relevant since STM32N6 supports 1 or 2 data lanes but not 4. In that case the D-PHY bitrate has to be set to 912 Mbps. In the case of IMX219, 912 Mbps is the maximum you can get from the sensor and on 2 lanes. With 912 Mbps, clk_byte is 114 MHz
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.