AnsweredAssumed Answered

Using AN4652 - I2C Driver Locks Up

Question asked by mrupp_viatechnology on Jan 30, 2013
Latest reply on May 16, 2013 by Mohsin455

I am using the I2C driver as presented in AN4652 on a K70 system using MQX 3.8 and CodeWarrior 10.2.  The K70 is a master and there is a single slave device.  Initially everything works fine.  Looking at an oscilloscope I see the clock and data lines; the data from the slave device is correct.  The problem is that after some time the I2C interface just stops--the oscilloscope shows nothing.  The time is somewhat random but less than five minutes.  The program is executing an 'fread' statement that never returns.   The problem is somewhat baud rate dependent.  Lowering the baud rate (from 100,000 to 10,000) results in a longer time until the interface locks.  Are there any know problems with the I2C driver?

Outcomes