Tool/software: TI-RTOS
I seem to have a problem where I am getting false I2C MSTAT.BUSBSY flags.
I have two devices on the I2C bus. I regularly open and close the I2C to access these devices. I seem to occasionally get the I2C MSTAT.BUSBSY bit set (causing the ti driver to abort the transfers). I access one device every 200ms the other every 3-5 seconds.
- I have check the previous I2C transaction on a SCOPE and it executed properly. When the error happens, there is no activity on the I2C bus... both SDA and SCL are high
- I found that if I disable the software for one of the I2C devices, the other one works fine.
- I also have an LCD driver on SPI. if I disable the SPI driver the two I2C devices work fine.
- Note I have no data traffic on the SPI bus, just the act of having the SPI device open causes the error.
- I have tried operations at both 100 and 400KHz
- I have verified I have no stack or heap errors.
Any suggestions on where the problem could be?