CyUSBSerial: CyI2cWrite failing on Linux using Python

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TeSy_4601446
Level 1
Level 1

Hello,

We are developing a Python controlling software.    The device to be controlled is built with a CY7C65215 chip.  The manufacturer of the device provides a C sharp version API and we need to convert it into a Python version.  The C sharp version works perfectly.

We use the cyusbserial.so library provided by cypress.   We measured the I2C pins on the device.  SCL shows low signal and there is no clock signal.

The error code returned is 6 which is CY_ERROR_REQUEST_FAILED.     It seems that CY7C65215 chip can not recognize the signal from Linux.   

What could be wrong?        Any suggestions would be greatly appreciated.  

Thanks

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

-Could you please try the CyUSBSerialTestUtility present with USB-Serial Linux SDK? The utility is designed to perform read/write operations to the I2C EEPROM on the board.

-The CY_ERROR_REQUEST_FAILED error occurs if library is not initialized properly. Please use the CyUSBSerialTestUtility source as reference for modifying your application and check the SCL lines again.

Best Regards,

Sananya

View solution in original post

0 Likes
1 Reply
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

-Could you please try the CyUSBSerialTestUtility present with USB-Serial Linux SDK? The utility is designed to perform read/write operations to the I2C EEPROM on the board.

-The CY_ERROR_REQUEST_FAILED error occurs if library is not initialized properly. Please use the CyUSBSerialTestUtility source as reference for modifying your application and check the SCL lines again.

Best Regards,

Sananya

0 Likes