CY7C65215-32LTXI returns CY_ERROR_I2C_DEVICE_BUSY

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

cross mob
chrkur
Level 1
Level 1
First question asked Welcome!

Hi Cypress Team,

in my project the following configuration is used:

  • Hardware: i.MX6 processor is connected via USB interface with the cypress chip CY7C65215-32LTXI. At the cypress chip several GPIOs, the SPI and I2C bus are used. At the I2C bus the cypress chip is the master.
  • Software: On th i.MX6 a linux operating system is running and we are using your USB-serial linux driver

Normally the communication is working fine. We have no problems communicating via SPI or controlling the GPIOs.

But sometimes it happen that the I2C bus get stucks, meaning that we get a CY_ERROR_I2C_DEVICE_BUSY back if we want to write or read on the I2C bus. I suppose that the reading or writing command before the bus get stucks is not finished correctly, resulting in a pulling the SDA line low by the master.

Question:

  • Is it possible to reset the I2C bus for instance by using the CyI2cReset command?
0 Likes
1 Solution
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Yes, it is possible to use CyI2CReset command. This API resets the I2C module in USB Serial device. Kindly refer to section 7.5 in the USB Serial Library API Guide: https://www.cypress.com/file/123321/download 

Regards,

Mallika

View solution in original post

0 Likes
1 Reply
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Yes, it is possible to use CyI2CReset command. This API resets the I2C module in USB Serial device. Kindly refer to section 7.5 in the USB Serial Library API Guide: https://www.cypress.com/file/123321/download 

Regards,

Mallika

0 Likes