Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

sherrydodo
New Contributor II

Hello guys!

During the process of setting the software, we encountered some difficulties in setting the parameters. The default values in MIPI CSI2 inputs are in the left red box, and we need to set the parameters in the right-hand side box and we could not see any images in the camera. Would you mind giving us some advice on how to fill the boxes?thumbnail_image.png
If anyone could help me, I will really appreciate that!
0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator

Hello Sherry,

We are glad to help you!

It seems that PRINT_FRAME_INFO macro is not enabled while capturing the UART logs. Please enable PRINT_FRAME_INFO macro and share the UART logs again

Please confirm if the Thread entry function CyCx3UvcAppThread_Entry is as follows

void
CyCx3UvcAppThread_Entry (
        uint32_t input)
{
    uint16_t wakeReason;
    uint32_t eventFlag;
    CyU3PReturnStatus_t status;
#ifdef PRINT_FRAME_INFO
    uint32_t fps;
    CyU3PMipicsiErrorCounts_t errCnts;
#endif

    /* Initialize the Debug Module */

    CyCx3UvcAppDebugInit();

    /* Initialize the UVC Application */

    CyCx3UvcAppInit();


for (;;)
    {
        eventFlag = 0;
        if(glIsConfigured){
      
        CyU3PDebugPrint(4,"\n\r Prod = %d Cons = %d \n\r ", TxCount, RxCount);
        }
       

#ifdef PRINT_FRAME_INFO
		if (Printflag == 1)
		{
			/*For video streaming application of higher FPS refrain from using this debug print or try to reduce the print information*/
			CyU3PDebugPrint(4,"\n\rProd = %d Cons = %d  Prtl_Sz = %d Frm_Cnt = %d Frm_Sz = %d B", TxCountflag, RxCountflag, PartialBufSize, FrameCount, ((TxCountflag*CX3_UVC_DATA_BUF_SIZE)+PartialBufSize));
			Printflag = 0;

			if (fpsflag == 1)
			{
				fps = 30000/(time1 -time0); //FPS calculate using time difference for 30 frames
				CyU3PDebugPrint(4,"\n\rTimeDiff = %d ms FPS = %d", (time1 -time0), fps);
				fpsflag = 0;


			}
	
#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

.....
....
}

 

Regards,
Rashi

View solution in original post

0 Likes
9 Replies