Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problem with connecting videosensor.

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Problem with connecting videosensor.
Moderator:
RSKV

Post Reply
Follow this topic



Problem with connecting videosensor.

GL_basik posted on 06 Jun 2012 7:19 AM PST
Top Contributor
24 Forum Posts

I write a firmware for a system based on FX3 and videosensor. I programmed GPIF as described in AN75779 and created DMA chanel for translate data to the PC. I didn't make changes in data, only translate.

As described in AN75779, I define the size of DMA bufer as 16kB, and the bufer count as 4. But when I try to translate data it translate only few frames, and then translation terminated and device didn't detect by Cypress CC.

I reduced the size of DMA bufer to 1kB.  Now traslate didn't terminat, but the data arrived discordantly, so i can't capture properly image.

Where there is may be a problem and how solve it?




Re: Problem with connecting videosensor.

dbir posted on 07 Jun 2012 11:56 PM PST
Cypress Employee
26 Forum Posts

How do you debug it? You may want to add some print messages to the firmware and see what exactly is happening?




Re: Problem with connecting videosensor.

GL_basik posted on 07 Jun 2012 12:45 AM PST
Top Contributor
24 Forum Posts

Function CyU3PDmaMultiChannelCommitBuffer returns CY_U3P_ERROR_INVALID_SEQUENCE and translation terminated. What this mean I don't understand because there aren't any description in technical documentations.  Also device don't detects by Cypress CC, but in system device manager it is present.

When I use the small bufer device don't returns any errors.



Re: Problem with connecting videosensor.

GL_basik posted on 26 Jun 2012 08:25 AM PST
Top Contributor
24 Forum Posts

I solved the problem with transfer data. But now there is another problem with the low data transfer speed. If I've transfer less then 10MB/s there are all ok, and packets havn't lost. But when I have increased data trasfer speed to 50MB/s many packets become lost.

I when I try to test the speed with USBBulkSourceSink example it was up to 380MB/s. But when I use data from videosensor to transfer in this exapmple it transefr with loses. What may be cause of this lases.



Re: Problem with connecting videosensor.

RSKV posted on 27 Jun 2012 12:19 AM PST
Cypress Employee
655 Forum Posts

Try using the maximum dma buffer that is available.

Regards,

sai krishna.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.