Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problem with PC software

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



Problem with PC software
Moderator:
RSKV

Post Reply
Follow this topic



Problem with PC software

feiwa posted on 24 Apr 2012 1:31 PM PST
Member
6 Forum Posts

 Hi,

    I am using CY7C68013A to send data from FPGA to PC. The USB is configured as asynchronous Slave FIFO, EP6 with auto-in mode. Bus Hound was used to test data from FPGA and the communication was correct.

    The C++ program in PC uses the DeviceIOControl to get data from OS. Code is as follows. The strange thing is the program can work when the data buffer is set to be 8192. When the data buffer is set to a small volumn, such as 1024, the software doesn't work; also when the data buffer is more than 10240, the software fail to work.

     Another question is data received in the PC is not continuous, and it seems some data packages are lost during communication. (PS. single thread is used in the software). Yet, test in Bus Hound is correct and no data package is lost.

    Could someone with experience in this field answer this question for me? Thank you very much!

bResult = DeviceIoControl (hDevice,

IOCTL_EZUSB_BULK_READ, 

&bulkControl,

sizeof (BULK_TRANSFER_CONTROL),

data,

8192,

&lenBytes,

NULL);




Re: Problem with PC software

aasi posted on 30 Apr 2012 11:16 PM PST
Cypress Employee
1090 Forum Posts

Looking at the IOCTL it seems you're using ezusb.sys. Which OS, CPU architecture (32 bit or 64 bit) are you running it in?

PS: ezusb.sys is not supported anymore, developing using CyUSB.sys would be the best way to go.

Regards,

Anand






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.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20