- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear sirs,
I connect DVP to FX3, and use the code of AN75779. It can run without any error, but video can not be preview with any player.
The format of DVP is bellow:
Outpur format | UYVY |
PCLK | 74.25M |
H SYNC | 22500Hz |
V SYNC | 30Hz |
PIC-WIDTH | 1650 |
H-active | 1280 |
V-active | 720 |
FX3 print and usb traffic receive are bellow:
cyfxuvcdscr.c change two positions,
The code of AN75779 is downloaded from:
https://china.cypress.com/documentation/application-notes/an75779-how-implement-image-sensor-interfa...
Everything seems going well, why the video can not be preview???
Thanks for any replay and suggestion.....
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Tags:
- 3014 issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Have you changed the glProbeCtrl and DMA buffer sizeas described in https://community.cypress.com/t5/Knowledge-Base-Articles/UVC-Troubleshooting-Guide-KBA226722/ta-p/25... ?
16380 is the DMA buffer size set in the firmware. Meanwhile, you need to rebuild the GPIF II project if you change the width of GPIF interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
By default, in AN75779 application note, GPIF bus width is 8 bit. Please check if this matches with the sensor interface.
Also, please check KBA226722
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Hemanth,
Here is the Pic of DVP port and PCLK and H sync wareform.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Hemanth,
I debug usb receives data cap from wireshark, the packet data length is 16380 Byte. And most frame size is 116 packet(data length is 16380 Byte) + 1 packet(data length is 10008 Byte).
So one frame size = (16380-12)*116+(10008-12)*1=1908220 Byte.
It seems more 65020 Byte are received.(1908220-1280*720*2=65020)
Is't right? Why it will be?🤕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry.
So one frame size = (16380-12)*116+(10008-12)*1=1908684 Byte.
It seems more 65020 Byte are received.(1908220-1280*720*2=65484)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Have you changed the glProbeCtrl and DMA buffer sizeas described in https://community.cypress.com/t5/Knowledge-Base-Articles/UVC-Troubleshooting-Guide-KBA226722/ta-p/25... ?
16380 is the DMA buffer size set in the firmware. Meanwhile, you need to rebuild the GPIF II project if you change the width of GPIF interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear YiZ_31,
Thanks for reply!
My DVP input is 8 bit data bus. I didn't change the code of AN75779(glProbeCtrl and DMA buffer).
Can you give me another example code for testing?
DVP input format is below:
8 bit data bus; (16 bit per pixel)
Outpur format | UYVY |
PCLK | 74.25M |
H SYNC | 22500Hz |
V SYNC | 30Hz |
PIC-WIDTH | 1650 |
H-active | 1280 |
V-active | 720 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, so you need to change the glProbeCtrl:
Make sure that maximum video frame size set in the probe control structure (glProbeCtrl) is equal to or greater than the number of bytes sent in one frame. Also, make sure that the maximum payload size set in the probe control structure is more than the size sent in the payload (which is typically the DMA buffer size).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear YiZ_31,
Pls do my a favor to down load the code i attached last mail.
And the /* Max video frame size in bytes */ in glProbeCtrl[CY_FX_UVC_MAX_PROBE_SETTING] is 0x00, 0x48, 0x3F, 0x00. It is much greater than 1,843,200 Byte. Am i right?
3Q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, that's correct. So, there are no other place in the firmware need to be modified. Could you double check if the data amount from your FPGA is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear YiZ_31,
Thanks for reply.
The format of DVP is correct. As the pic bellow, the video can be preview through HMDI driver.
Can you give me another example code, support this DVP format for testing?
3Q