Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers

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



Very Odd problem with bulk write
Moderator:
RSKV

Post Reply
Follow this topic



Very Odd problem with bulk write

djk posted on 26 Aug 2010 3:46 PM PST

1 Forum Post

The BulkOutEndPt->XferData method returns with no error and shows the proper number of bytes transfered, but no bytes are actually sent.  I've confirmed this with a USB trace that shows that no bytes transfer.  On investigation, the URB is formed with the correct byte count but with a buffer value of zero.

When I use a direct IOCTL to the driver using the older IOCTL, IOCTL_ADAPT_SEND_NON_EP0_TRANSFER, rather than the new IOCTL_ADAPT_SEND_NON_EP0_DIRECT, bytes are sent successfully.  A direct call to the new IOCTL fails the same as the library call.

I've got an open case on this and my code has been reviewed by Cypress with with no errors.  I'm positively stumped since I assume this works for everybody else in the world but me and my client.  I've tested it on multiple machines with no success. The test code I sent Cypress worked fine for them but fails for me.

Although the code for the client is in a DLL and somewhat complicated, my simplest test case is a simple .exe that uses the cypress library to just open the device do an XferData.

The client's target is a vanilla implementation based on  CY7C64713-128AXC and I develop on Windows 7, x64 although the code has been tested at my client's on x32 bit and WinXP.

I'm no longer roadblocked since  the direct IOCTL works OK, but I sure would like to understand the problem.  I assume It must be something environmental,

Any thoughts would be appreciated.

Thanks,

 

--- Dennis







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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20