Jump to content
  • 0

I2C Error Conditions


RoboRepublic

Question

I'm trying to debug an I2C connection between two devices, the controller seems to be hung when reading from the perhipheral.I've stuck probes on the SDA/SCL lines. The pull up resistors are 4.7k ohm resistors. Waveforms is mentioning it sees an error on the last I2c transmission, but I cannot gather what condition has occurred to generate the error condition. It is accurate- as the controlling device is hung. How can delve deeper into understanding what happened between the two devices? Thanks!

 

Here is the last good I2C transaction that occurred:

goodWf.jpg

Here is the final transaction that leads to hung condition:

badWf.jpg

The protocol spy output from a second session (same outcome, just different test run) follows here: 

 

ProtocolSpyOutput_I2C_Hang.jpg

Edited by RoboRepublic
clarified diagrams, and formatted paragraph better
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...