- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm trying to stream an mipi raw 10 camera and trying to stream after configuring camera. I got blank image in my camera app. and the below uart logs has been continuously printing.
"Prod = 114 Cons = 108 Prtl_Sz = 19456 Frm_Cnt = 1 Frm_Sz = 4216480 B
Prod = 60 Cons = 60 Prtl_Sz = 19424 Frm_Cnt = 2 Frm_Sz = 2228384 B
Prod = 60 Cons = 60 Prtl_Sz = 17856 Frm_Cnt = 3 Frm_Sz = 2226816 B
Prod = 60 Cons = 60 Prtl_Sz = 17696 Frm_Cnt = 4 Frm_Sz = 2226656 B
Prod = 60 Cons = 60 Prtl_Sz = 23424 Frm_Cnt = 5 Frm_Sz = 2232384 B
Prod = 60 Cons = 60 Prtl_Sz = 19712 Frm_Cnt = 6 Frm_Sz = 2228672 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 7 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 8 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23360 Frm_Cnt = 9 Frm_Sz = 2232320 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 10 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23488 Frm_Cnt = 11 Frm_Sz = 2232448 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 12 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 13 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 14 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 23584 Frm_Cnt = 15 Frm_Sz = 2232544 B
Prod = 60 Cons = 60 Prtl_Sz = 19296 Frm_Cnt = 16 Frm_Sz = 2228256 B
Prod = 60 Cons = 60 Prtl_Sz = 19616 Frm_Cnt = 17 Frm_Sz = 2228576 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 18 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 23296 Frm_Cnt = 19 Frm_Sz = 2232256 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 20 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 23552 Frm_Cnt = 21 Frm_Sz = 2232512 B
Prod = 60 Cons = 60 Prtl_Sz = 17728 Frm_Cnt = 22 Frm_Sz = 2226688 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 23 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 24 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 25 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 17824 Frm_Cnt = 26 Frm_Sz = 2226784 B
Prod = 60 Cons = 60 Prtl_Sz = 23296 Frm_Cnt = 27 Frm_Sz = 2232256 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 28 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 29 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 19296 Frm_Cnt = 30 Frm_Sz = 2228256 B
TimeDiff = 14578 ms FPS = 2
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 31 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 20576 Frm_Cnt = 32 Frm_Sz = 2229536 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 33 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 23392 Frm_Cnt = 34 Frm_Sz = 2232352 B
Prod = 60 Cons = 60 Prtl_Sz = 17792 Frm_Cnt = 35 Frm_Sz = 2226752 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 36 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 37 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 23456 Frm_Cnt = 38 Frm_Sz = 2232416 B
Prod = 60 Cons = 60 Prtl_Sz = 19424 Frm_Cnt = 39 Frm_Sz = 2228384 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 40 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 41 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 42 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 17792 Frm_Cnt = 43 Frm_Sz = 2226752 B
Prod = 60 Cons = 60 Prtl_Sz = 19616 Frm_Cnt = 44 Frm_Sz = 2228576 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 45 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 46 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 47 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19296 Frm_Cnt = 48 Frm_Sz = 2228256 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 49 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 50 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 23328 Frm_Cnt = 51 Frm_Sz = 2232288 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 52 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 53 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 54 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 55 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 56 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 57 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 19616 Frm_Cnt = 58 Frm_Sz = 2228576 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 59 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 60 Frm_Sz = 2228544 B
TimeDiff = 1084 ms FPS = 27
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 61 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 62 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23456 Frm_Cnt = 63 Frm_Sz = 2232416 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 64 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23552 Frm_Cnt = 65 Frm_Sz = 2232512 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 66 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 23552 Frm_Cnt = 67 Frm_Sz = 2232512 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 68 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 69 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 70 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 23520 Frm_Cnt = 71 Frm_Sz = 2232480 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 72 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23360 Frm_Cnt = 73 Frm_Sz = 2232320 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 74 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 23392 Frm_Cnt = 75 Frm_Sz = 2232352 B
Prod = 60 Cons = 60 Prtl_Sz = 21920 Frm_Cnt = 76 Frm_Sz = 2230880 B
Prod = 60 Cons = 60 Prtl_Sz = 23648 Frm_Cnt = 77 Frm_Sz = 2232608 B
Prod = 60 Cons = 60 Prtl_Sz = 23392 Frm_Cnt = 78 Frm_Sz = 2232352 B
Prod = 60 Cons = 60 Prtl_Sz = 19360 Frm_Cnt = 79 Frm_Sz = 2228320 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 80 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 81 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 23296 Frm_Cnt = 82 Frm_Sz = 2232256 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 83 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19616 Frm_Cnt = 84 Frm_Sz = 2228576 B
Prod = 60 Cons = 60 Prtl_Sz = 19712 Frm_Cnt = 85 Frm_Sz = 2228672 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 86 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 87 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 23456 Frm_Cnt = 88 Frm_Sz = 2232416 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 89 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 90 Frm_Sz = 2228608 B
TimeDiff = 983 ms FPS = 30
Prod = 60 Cons = 60 Prtl_Sz = 19712 Frm_Cnt = 91 Frm_Sz = 2228672 B
Prod = 60 Cons = 60 Prtl_Sz = 23264 Frm_Cnt = 92 Frm_Sz = 2232224 B
Prod = 60 Cons = 60 Prtl_Sz = 19424 Frm_Cnt = 93 Frm_Sz = 2228384 B
Prod = 60 Cons = 60 Prtl_Sz = 17824 Frm_Cnt = 94 Frm_Sz = 2226784 B
Prod = 60 Cons = 60 Prtl_Sz = 19680 Frm_Cnt = 95 Frm_Sz = 2228640 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 96 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 97 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 98 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 99 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 100 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 101 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19680 Frm_Cnt = 102 Frm_Sz = 2228640 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 103 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 104 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 23456 Frm_Cnt = 105 Frm_Sz = 2232416 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 106 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19488 Frm_Cnt = 107 Frm_Sz = 2228448 B
Prod = 60 Cons = 60 Prtl_Sz = 19392 Frm_Cnt = 108 Frm_Sz = 2228352 B
Prod = 60 Cons = 60 Prtl_Sz = 19328 Frm_Cnt = 109 Frm_Sz = 2228288 B
Prod = 60 Cons = 60 Prtl_Sz = 19456 Frm_Cnt = 110 Frm_Sz = 2228416 B
Prod = 60 Cons = 60 Prtl_Sz = 19424 Frm_Cnt = 111 Frm_Sz = 2228384 B
Prod = 60 Cons = 60 Prtl_Sz = 19648 Frm_Cnt = 112 Frm_Sz = 2228608 B
Prod = 60 Cons = 60 Prtl_Sz = 19616 Frm_Cnt = 113 Frm_Sz = 2228576 B
Prod = 60 Cons = 60 Prtl_Sz = 23808 Frm_Cnt = 114 Frm_Sz = 2232768 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 115 Frm_Sz = 2228480 B
Prod = 60 Cons = 60 Prtl_Sz = 23296 Frm_Cnt = 116 Frm_Sz = 2232256 B
Prod = 60 Cons = 60 Prtl_Sz = 23520 Frm_Cnt = 117 Frm_Sz = 2232480 B
Prod = 60 Cons = 60 Prtl_Sz = 19584 Frm_Cnt = 118 Frm_Sz = 2228544 B
Prod = 60 Cons = 60 Prtl_Sz = 19552 Frm_Cnt = 119 Frm_Sz = 2228512 B
Prod = 60 Cons = 60 Prtl_Sz = 19328 Frm_Cnt = 120 Frm_Sz = 2228288 B
TimeDiff = 1016 ms FPS = 29
Prod = 60 Cons = 60 Prtl_Sz = 23520 Frm_Cnt = 121 Frm_Sz = 2232480 B
Prod = 60 Cons = 60 Prtl_Sz = 19520 Frm_Cnt = 122 Frm_Sz = 2228480 B"
kindly say what will be the the problem in streaming mipi raw 10 data
hear I'm attaching my project file kindly look for that and check what will be the problem.
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rohanth,
As with the continuous clock, the video frame size received by CX3 is not as expected. We can try changing the clock to gated.
Please note that when gates MIPI CSI clock is used, the default firmware generated by tool need to be used i.e. the modification mentioned in Q13 of KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community need to be followed for gated clock.
Please note that when gates MIPI CSI clock is used, the default firmware generated by tool need to be used i.e. the modification mentioned in Q13 of KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community need to be followed for gated clock.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
From the UART prints, the frame size is not constant. The frame size is expected to be constant (for example: 1920*1080*10 /8 = 2592000 bytes).
Pleas let me know which among the two resolutions is being streamed. Please check if the MIPI transmitter is configured with the same setting as MIPI receiver. Also, check if there are any MIPI errors by enabling following debug print and share the UART prints again.
#ifndef FX3_STREAMING
CyU3PMipicsiGetErrors( CyTrue, &errCnts);
CyU3PDebugPrint(4,"\n\r%d %d %d %d %d %d %d %d %d",errCnts.crcErrCnt,errCnts.ctlErrCnt, errCnts.eidErrCnt, errCnts.frmErrCnt, errCnts.mdlErrCnt, errCnts.recSyncErrCnt, errCnts.recrErrCnt, errCnts.unrSyncErrCnt, errCnts.unrcErrCnt );
#endif
Also, confirm if MIPI CSI clock is continuous or gated. Please refer to Q13 of this KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm using 1920x1080 resolution and I uncomment the lines for "MIPI error" but I cant find any MIPI error in UART logs.
My MIPI CSI CLK is continues so i followed the above procedure and done this "Refer any UART logs for my function call " still I'm not getting the image.
I attached the two UART logs one with CY_U3P_CSI_DF_RAW10 in "cyu3mipicsi.c" and another one is replaced the CY_U3P_CSI_DF_RAW10 with CY_U3P_CSI_DF_YUV422_8_2 in "cyu3mipicsi.c".
when I tried by replacing the CY_U3P_CSI_DF_RAW10 with CY_U3P_CSI_DF_YUV422_8_2 in "cyu3mipicsi.c" the frame size is constant. kindly check the attached UART logs and my project file.
and suggest some corrections to get the image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
My MIPI CSI CLK is continues so i followed the above procedure
>> I couldn't see the modifications in the CyCx3UvcAppHandleSetCurReq of the firmware as per Q13 of the KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community
Please note that when replacing the CY_U3P_CSI_DF_RAW10 with CY_U3P_CSI_DF_YUV422_8_2, the output video format needs to be changed to 16 bits and the GPIF_BUS_WIDTH should be CY_U3P_MIPICSI_BUS_16.
If 24 bit video output format is used, then CY_U3P_CSI_DF_RGB888 will be the CyU3PMipicsiDataFormat_t dataFormat and GPIF_BUS_WIDTH should be CY_U3P_MIPICSI_BUS_24.
Please refer to this KBA for better understanding Streaming RAW10 Format Input Data to 16/24-bit Out... - Cypress Developer Community
The frame size is not as expected i.e. 1920*1080 *10/8 = 2592000 bytes. Please confirm the above changes and share the UART debug prints
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Hear I'm attaching my project file kindly verify that modification are correct.
Based on this KBA "https://community.cypress.com/t5/Knowledge-Base-Articles/Streaming-RAW10-Format-Input-Data-to-16-24-... I tried to modify the "cycx3_uvcdscr.c" but if I change
this " /* Class specific Uncompressed VS format descriptor */
0x1B, /* Descriptor size */
CX3_CS_INTRFC_DESCR, /* Class-specific VS interface Type */
0x04, /* Subtype : VS_FORMAT */
0x01, /* Format desciptor index */
0x01, /* Number of Frame Descriptors that follow this descriptor: 1 */" ,
to this" /* Class specific Uncompressed VS format descriptor */
0x1B, /* Descriptor size */
CX3_CS_INTRFC_DESCR, /* Class-specific VS interface Type */
0x04, /* Subtype : VS_FORMAT */
0x01, /* Format desciptor index */
0x04, /* Number of Frame Descriptors that follow this descriptor: 1 */",
the UVC is not detecting properly,
kindly say what does that exactly do if I change form 0x01 to 0x04 and what I should modify to get the image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Based on this KBA "https://community.cypress.com/t5/Knowledge-Base-Articles/Streaming-RAW10-Format-Input-Data-to-16-24-... I tried to modify the "cycx3_uvcdscr.c" but if I change
>> Please let me know why do you change *Number of Frame Descriptors that follow this descriptor: 1 *
As the frame size received from the image sensor is not as expected, we need to debug the MIPI interface. Please do not change the USB descriptors currently.
As you are using continuous thread , please modify the CyCx3UvcAppHandleSetCurReq of the firmware as per Q13 of the KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community
And also confirm if GPIF_BUS_WIDTH and video out data is same as shown in the figure attached.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
kindly check the project file that i send previously, where i modifies the code based on the Q13 of the KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community
and GPIF_BUS_WIDTH is CY_U3P_MIPICSI_BUS_16. still I got only black image.
"As you are using continuous thread , please modify the CyCx3UvcAppHandleSetCurReq of the firmware as per Q13 of the KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community "
>>I dint get what you are asking to modify, I made the modification in the function "CyCx3UvcAppHandleSetCurReq" already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Apologies, I missed the project file shared in your previous response.
I have made modification to the files shared by you. Please build the firmware and try streaming. Please share the UART debug prints for us to check the frame size received from MIPI transmitter
I tried to modify the "cycx3_uvcdscr.c"
>> Please revert the changes to the default settings.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have revert the changes to default for "cycx3_uvcdscr.c", (shared by you) but when I build the project I got error "Description Resource Path Location Type
undefined reference to `null_RAW10_FHD' cycx3_uvc.c /Cx3UvcAS0260 line 834 C/C++ Problem" in line 834 kindly check for that I dint get what was the problem in line 834.
and this what I got in USB debug logs "
Sensor is in sleep
U¹Í½Éis in sleep
EnterSuspendMode Status = 0x0, Wakeup reason = 0x8
USB Setup CB:SET_CUR:GetEP0Data sucess 0x0
perform a MIPI reset
Initialize the MIPI bridge
Set the MIPI interface parameters
WRITING I2C FOR FHD
WRITING I2C FOR FHD DONE.........
Success - Sensor configuration.
USB Setup CB:Valid SET_CUR sucess
USB Setup CB:SET_CUR:GetEP0Data sucess 0x0
perform a MIPI reset
Initialize the MIPI bridge
Set the MIPI interface parameters
WRITING I2C FOR FHD
WRITING I2C FOR FHD DONE.........
Success - Sensor configuration.
USB Setup CB:Valid SET_CUR sucess
Configuring MIPI-CSI interface........
WRITING I2C FOR FHD
WRITING I2C FOR FHD DONE.........
sensor in wake
Trigger autofocus
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 1 Frm_Sz = 2270400 B
1 1 11 1 22 63 11 7 38
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 2 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 3 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 4 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 5 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 6 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 7 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 8 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 9 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 10 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 11 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 12 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 13 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 14 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 15 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 16 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 17 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 18 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 19 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 20 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 21 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 22 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 23 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 24 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 25 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 26 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 27 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 28 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 29 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 30 Frm_Sz = 2270400 B
TimeDiff = 1007 ms FPS = 29
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 31 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 32 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 33 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 34 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0"
I got this uart log without correcting the error in line 834
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the firmware you shared in your earlier post, i couldn't find the cyu3pmipicsi.c file which has the MIPI structure to configure the CX3 MIPI receiver.
The error is see due to that.
Also, if the error is not resolved the build will fail which means the UART logs that you have shared will be from older .img file.
Please add the relevant cyu3pmipicsi.c file and build the firmware and share the UART logs.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Now the error is resolved after creating the file"cyu3pmipicsi.c" hear I'm sharing the uart logs for the code that you shared before.
" EnterSuspendMode Status = 0x0, Wakeup reason = 0x8
USB Setup CB:SET_CUR:GetEP0Data sucess 0x0
USB Setup CB:Valid SET_CUR sucess
USB Setup CB:SET_CUR:GetEP0Data sucess 0x0
USB Setup CB:Valid SET_CUR sucess
perform a MIPI reset
Initialize the MIPI bridge
Set the MIPI interface parameters
WRITING I2C FOR FHD
WRITING I2C FOR FHD DONE.........
Success - Sensor configuration.
sensor in wake
Trigger autofocus
Prod = 85 Cons = 83 Prtl_Sz = 24624 Frm_Cnt = 588 Frm_Sz = 3153984 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 589 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 590 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 591 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 592 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 593 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 594 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 595 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 596 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 597 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 598 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 599 Frm_Sz = 2270400 B
0 0 0 0 0 0 0 0 0
Prod = 61 Cons = 61 Prtl_Sz = 24624 Frm_Cnt = 600 Frm_Sz = 2270400 B
TimeDiff = 845 ms FPS = 59"
After this also I get black image.
I do have an e-cam57cx3 board which has ov5680 camera, this has come with the cx3 Denebola kit and this camera has mipi raw10 output. I can't find any example code for this camera if possible kindly share the example code so that I can change the configuration based on my camera and test it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
After this also I get black image.
>> The video streaming will be seen when the video frame size reported in the USB descriptors are streamed to USB host. From the UART logs, the frame size received bCX3 is 2270400 bytes which is not expected.
When GPIF_BUS_WIDTH is CY_U3P_MIPICSI_BUS_16 and vidoe format in the CX3 MIPI structure is replaced with CY_U3P_CSI_DF_YUV422_8_2, the expected video frame size is 1920*1080*10/8 bytes.
Please check the sensor configuration settings. You can also check if MIPI errors are seen with the modified firmware (i.e. changes done for continuous clock)
I do have an e-cam57cx3 board which has ov5680 camera, this has come with the cx3 Denebola kit and this camera has mipi raw10 output.
>> We do not have example code with ov5680 camera. Please refer to the SDK examples for CX3 (path: ..\Cypress\EZ-USB FX3 SDK\1.3\firmware\cx3_examples)
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"Please check the sensor configuration settings." this is means configuring the image sensor with I2c right ?
The configuration with the image sensor with I2C is correct.
Kindly say how to configure the MIPI lane speed , MIPI clock speed and pixel clock speed in cx3.
"The video streaming will be seen when the video frame size reported in the USB descriptors are streamed to USB host. From the UART logs, the frame size received bCX3 is 2270400 bytes which is not expected."
kindly say what kind of changes will affect/modify the frame size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rohanth,
As discussed, the frame size received from the MIPI transmitter is not as expected. Please check using some lower resolution and let me know if the problem still persists.
Please confirm that the fields under MIPI CSI Inputs (From Image Sensors) are configured same as the MIPI Transmitter settings
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rashi,
While checking my sensor configuration I fount that I can config CSI clock from continues to gated. I need to know that what will be the best option to be configured either continues or gated CLK.
Thankyou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rohanth,
As with the continuous clock, the video frame size received by CX3 is not as expected. We can try changing the clock to gated.
Please note that when gates MIPI CSI clock is used, the default firmware generated by tool need to be used i.e. the modification mentioned in Q13 of KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community need to be followed for gated clock.
Please note that when gates MIPI CSI clock is used, the default firmware generated by tool need to be used i.e. the modification mentioned in Q13 of KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community need to be followed for gated clock.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>> Please note that when gates MIPI CSI clock is used, the default firmware generated by tool need to be used i.e. the modification mentioned in Q13 of KBA CX3 Hardware: Frequently Asked Questions - KBA9129... - Cypress Developer Community need to be followed for gated clock.
According to this Q13 we need modification only if CSI CLK is continues i.e. if I changed to gated. I don't need any changes for the generated code right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rashi,
Based on our discussion I configured my camera to 720p and gated clock( which is 1280 x 720 x 10 /8 = 1152000)
now its match exactly with my uart logs
hear I'm sharing my uart log kindly check that.
But still I cant see the image in my camera app, what will be the issue for this one ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I found that there is some miss configuration in camera timing after reconfiguring now the camera is streaming for 1920x1080 30 fps.
Now now I made the new configurations for 60 fps but I can't configure the cx3 receiver for image sensor specification.
my sensor will support raw8,raw10,raw12 1080p 60 FPS what kind of configuration should I do to stream 1080p 60 fps in cx3 ?
Thankyou for the support .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rashi vatsa, I'm Marking the solution and reopen an new thread for 1080P 60 fps.
Thanks for the great support.