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.
Anonymous
Not applicable

Hi Community!

   

I wanted to use the 16 bit gpif interface for the uvc project.
But after my change I am not able to see a image on the pc side and
after some seconds the transfer ends. The FPS Number is zero.
The Resolution is 1000 x 750
Number of Bytes to transfer 2 * 1000 * 750

   

Resolution set in cyfxuvcdsrc.c is 1000 x 750 for YUV

   

In the UART prints I doesn't see any Errors. The UART output is

   

uvc.c:269:CyFxUVCApplnUSBSetupCB:Info: Set CY_FX_UVC_VIDEO_STREAM_REQUEST_EVENT successful
uvc.c:1484:UVCHandleVideoStreamingRqts:Info: UVCHandleVideoStreamingRqts:Set CY_FX_UVC_STREAM_EVENT successful
uvc.c:1072:UVCAppThread_Entry:Info: DMA Channel Set Transfer successful
uvc.c:1083:UVCAppThread_Entry:Info: Starting GPIF state machine successful
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 0 frames and 0 buffers
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 16 frames and 21 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 33 frames and 0 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 49 frames and 66 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 66 frames and 27 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 83 frames and 0 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 99 frames and 72 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 116 frames and 33 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 133 frames and 0 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 149 frames and 79 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 166 frames and 40 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large
uvc.c:326:CyFxUVCApplnUSBSetupCB:Info: Clear feature request detected..
uvc.c:1123:UVCAppThread_Entry:Info: UVC: Completed 170 frames and 7 buffers
uvc.c:1134:UVCAppThread_Entry:Info: The Image of PFGA is 1500000 bytes large

   

I have done the following steps. The duration of lval and fval is the same as by 8 bit interface.
 I switched my gpif interface from 8 bit to 16 bit, change the ADDR_COUNT_LIMITER and DATA_COUNTER_LIMITER
 to the value of 0x00001FF7 in cyfxgpif2config.h and doubled the width resolution in
 the cyfxuvcdsrc.c in configuration descriptor.

   

Which step is missing?

   

Thank for your help

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

I found my bug in the design and now 8 bit and 16 bit interface works fine.

   

i forgot to change the video frame size in the glProbeCtrl in uvc.c

0 Likes
Anonymous
Not applicable

Hi,

     I forgot to change the video frame size in the glProbeCtrl in uvc.c. This mean change 0x00 0x40 0x00 0x00 to 0x00 0x80 0x00 0x00 ?

0 Likes