Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CyU3PI2cTransmitBytes returns without completion

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



CyU3PI2cTransmitBytes returns without completion
Moderator:
RSKV

Post Reply
Follow this topic



CyU3PI2cTransmitBytes returns without completion

SKAN posted on 07 May 2012 4:32 PM PST
Senior Member
14 Forum Posts

We are using register mode for I2C write. Documentation says that in this mode all APIs are blocking which means they return when the transaction is complete. But we are observing that CyU3PI2cTransmitBytes returns back prior to completion of the transaction i.e before the stop bit. Also if single byte is written CyU3PI2cTransmitBytes returns even much earlier.

Is it a known issue?

Thanks,

Sandeep




Re: CyU3PI2cTransmitBytes returns without completion

aasi posted on 09 May 2012 12:12 AM PST
Cypress Employee
1073 Forum Posts

How are you timing the execution time of the code and the completion of the transfer i.e. the occurence of stop bit is on the physical line and the returning of the API is code execution. How are you timing the 2?

Regards,

Anand



Re: CyU3PI2cTransmitBytes returns without completion

Sil posted on 09 May 2012 01:19 AM PST
Top Contributor
93 Forum Posts

Can it be that your SCL and SDA lines are driven to an invalid state from externally? I had a similar issue and then found that the SCL and SDA lines got driven to 1.25 V by a faulty hardware.

 

Maybe also worth checking the return values of your I2C init function.

 

-Silvio






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.