cypress fx3 usb 2.0 VGA 15fps

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

cross mob
Anonymous
Not applicable

Hi,

   

I am using AN75779 example code.

   

I am trying to stream VGA resolution 15fps over USB 2.0.

   

But the sample application is for super speed configuration like

   

CY_FX_EP_BULK_VIDEO_PKT_SIZE 1024bytes

   

.burstLen = 16;

   

but USB 2.0 bulk will support 512bytes and burst len 8

   

i am getting black screen..

   

Any suggestion?

   

Reagrads,

   

RAJ M

0 Likes
5 Replies
Anonymous
Not applicable

Hi

   

More updata

   

UVC: Completed 0 frames and 0 buffers

   

I am getting above debug on UART

   

I probe my camera data signaling its seem ok its send data (check with oscilloscope)

   

Regards

   

RAJ M

0 Likes
Anonymous
Not applicable

Hi,

   

There can be many reasons for this.

   

Make sure if Fx3 is receiving the data and the buffers are getting committed correctly. You can count the producers (prodCount) in the firmware in the DMA Callback.

   

I would recommend you to create a Tech Support case for this.

   

Regards,

   

-Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi,

   

Thank you for reply.

   

I have put debug print in dmacallback but i am not getting that prints

   

I have checked that FV LV Data seem its ok.

   

I think GPIF is not getting data whatever camera sent to it.

   

i add below code snippet on UVCAppThread_Entry()

   

apiRetStatus = CyU3PGpifReadDataWords (0, CyFalse, 1, tmp_data, 0xFF);
                            if (apiRetStatus == CY_U3P_SUCCESS)
                            {

   

                                 CyU3PDebugPrint (4, "Read Data = %x\n\r", tmp_data[0]);

   

                            }
                            else
                            {

   

                                CyU3PDebugPrint (4, "Read failed with error code %d\n\r", apiRetStatus );
                                apiRetStatus = CyU3PGpifGetSMState(&current_state);
                                CyU3PDebugPrint (4, "Current state %d and err = %d\n\r", current_state, apiRetStatus );

                            }

   

 

   

output:

   

Read failed with error code 7

   

Current state and err = 0

   

 

   

Regards,

   

RAJ M

0 Likes
Anonymous
Not applicable

Hi,

   

I can now streaming without problem.

   

I have another doubt regarding frame rate i will open another thread.

   

Thank you all

   

Regards

   

RAJ M

0 Likes

Hi Raj,

How did you solve this black screen problem?

Please share the solution.

Regards,

Moon

0 Likes