No mipi errors, but no streaming

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
roMo_4201811
Level 2
Level 2
First like received

Hello,

We are trying to configure our ar0144 sensor to stream with settings RAW10, 30ips, 1280x800 on the denebola board.

Camera input xtal is 27mhz

Mipi errors show 0, but AMCap reports no fps and no picture. Debug output:

Prod = 45 Cons = 45  Prtl_Sz = 22000 Frm_Cnt = 99 Frm_Sz = 1678720 B

0 0 0 0 0 0 0 0 0

Prod = 45 Cons = 45  Prtl_Sz = 19568 Frm_Cnt = 100 Frm_Sz = 1676288 B

0 0 0 0 0 0 0 0 0

Prod = 45 Cons = 45  Prtl_Sz = 18128 Frm_Cnt = 101 Frm_Sz = 1674848 B

0 0 0 0 0 0 0 0 0

Scope traces of mipi clk/data, Pclk, HS and VS are shown below. My project is attached.

mipi clk bottom trace, arithmetic diff:

pastedImage_16.png

mipi clk/data, 1=data, 2=clk

pastedImage_17.png

PCLK

pastedImage_18.png

1=VS, 2=HS

pastedImage_19.png

1=VS, 2=HS zoom (glitches on HS?)

pastedImage_20.png

Any suggestions of what to test or try?

Thank you,

Rockie

0 Likes
1 Solution

Hello Rockie,

Good to hear that the application is working after configuring the sensor properly.

The pixel clock is fed to GPIF II interface. the maximum clock frequency supported by GPIF is 100 MHz.

As the data coming from the sensor  (MIPI) is serial and GPIF is parallel interface the CSI clock (sensor clock) and the pixel clock (GPIF interfacing clock) will not be same.

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
6 Replies
cycy_1740621
Level 4
Level 4
First comment on KBA 10 solutions authored 25 replies posted

Mipi errors show 0, but AMCap reports no fps and no picture. Debug output:

Prod = 45 Cons = 45  Prtl_Sz = 22000 Frm_Cnt = 99 Frm_Sz = 1678720 B

0 0 0 0 0 0 0 0 0

Prod = 45 Cons = 45  Prtl_Sz = 19568 Frm_Cnt = 100 Frm_Sz = 1676288 B

0 0 0 0 0 0 0 0 0

Prod = 45 Cons = 45  Prtl_Sz = 18128 Frm_Cnt = 101 Frm_Sz = 1674848 B

0 0 0 0 0 0 0 0 0

From the debug out we could find that the framesize is not constant, that's incorrect.

1=VS, 2=HS zoom (glitches on HS?)

pastedImage_20.png

The wavform of VS and HS should be clean and no glitches. You could refer to the waveforms in this thread.

基于CX3的UVC摄像头应用学习笔记-三(固件调试-1)

scope_4(H_active).png

To debug this problem, check if you have made a correct MIPI interface configuration according to the guide below

Streaming RAW10 Format Input Data to 16/24-bit Output Format in CX3 MIPI CSI-2 - KBA224387

0 Likes
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Rochie,

As mentioned in previous response, from the debug prints it seems that the frame size is not uniform for every frame.

This can be due to glitches in FV, LV signals. Please share the CX3 Configuration utility snippet for us to check

Also confirm the the sensor is configured as per the configuration set in the CX3 Configuration utility

Regards,

Rashi

Regards,
Rashi
0 Likes

Hello,

Here are screenshots from the cx3 utility.

pastedImage_0.png

pastedImage_1.png

0 Likes

Hello Rochie,

The CX3 Utility setting seems to be fine.

Please confirm that you are using the default firmware generated by the tool after following the steps mentioned in this KBA Steps to Setup up MIPI CSI Camera Solution with CX3 – KBA225748

If possible can you share the the firmware file of your application. Also share the block diagram of the system, are you using just the sensor  with MIPI interface and CX3 Denebola kit or are you using a custom board

Regards,

Rashi

Regards,
Rashi
0 Likes
lock attach
Attachments are accessible only for community members.

Hi Rashi,

I got it working.

The problem was the unit clock multiplier setting in the receiver configuration page. It was producing the wrong PLL out clock value so once I dialed it in to match the sensor freq, the image streamed properly. Interestingly, the o/p pixel clock and hs clock values in the receiver configuration page are still wrong (don’t match the sensor) , but it does not seem to matter.

Thanks for your support,

Rockie

0 Likes

Hello Rockie,

Good to hear that the application is working after configuring the sensor properly.

The pixel clock is fed to GPIF II interface. the maximum clock frequency supported by GPIF is 100 MHz.

As the data coming from the sensor  (MIPI) is serial and GPIF is parallel interface the CSI clock (sensor clock) and the pixel clock (GPIF interfacing clock) will not be same.

Regards,

Rashi

Regards,
Rashi
0 Likes