1 Reply Latest reply on Dec 6, 2019 1:22 AM by SananyaM_56

    CyUSBSerial: CyI2cWrite failing on Linux using Python

    TeSy_4601446

      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

        • 1. Re: CyUSBSerial: CyI2cWrite failing on Linux using Python
          SananyaM_56

          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