2411372_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2411372_en-US

2411372_en-US

iMX8MP - integrating CSI2 with OV5648

I'm having trouble integrating OV5648 camera with IMX8MP. I do get an image but it's skewed towards green colors. The test pattern however looks good.

I'm using a Single Pixel Mode on a 2 lane CSI, with a RAW8 sensor.

I'm currently trying to figure out if I should use the Quad Pixel Mode for 2 lane RAW8. My understanding is that if I set Quad Pixel Mode, I have to configure the clock such that ISI DMA reads the CSI FIFO after 4 bytes are present in the FIFO. For a 2 lane CSI that happens every other transaction. Am I correct here? Should I also enable the 32 bit wide bus?

MichalC_0-1788529885527.pngMichalC_0-1788529885527.pngMichalC_0-1788529885527.png

When I enable Quad Pixel Mode 3/4 of the resulting image is black.

i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlusRe: iMX8MP - integrating CSI2 with OV5648

Hello,

The pixel mode seems not to be the root cause of the color issue.

Please confirm that Bayer pattern order for your OV5648 camera is according to the driver you used.

Best regards.

Re: iMX8MP - integrating CSI2 with OV5648

Hello @MichalC,

For OV5648 RAW8 over 2-lane CSI-2 on i.MX8MP you are right regarding Single Pixel Mode.

As explained in this Wiki Data Transmission Layer  CSI-2 distributes bytes across the active lanes and the receiver recombines them into a byte stream. So 2 lanes do not imply Quad Pixel Mode. 

For RAW8 1 pixel = 1 byte(Pixel/Byte Packing). Therefore, your interpretation that ISI should wait for 4 bytes every other 2-lane transaction is not something that follows from CSI-2 lane operation alone. 

The fact that Quad Pixel Mode gives you 3/4 black output suggests the CSI/ISI interface width or timing is mismatched.

Also the green tint is likely a separate RAW Bayer issue.  As stated in Image Sensor Basics, RAW Bayer data requires demosaicing, color correction, and white balance. I would verify the OV5648 Bayer order and RAW8 media-bus format first.

Feel free to contact us for more details.

Regards,

Felipe Solano
Embedded SW Engineer at RidgeRun
Contact us: [email protected]
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

タグ(1)
評価なし
バージョン履歴
最終更新日:
2 週間前
更新者: