AnsweredAssumed Answered

KL17  freezes in infinite loop

Question asked by kayathri M on Feb 23, 2018
Latest reply on Feb 24, 2018 by Mark Butcher

Hi all,

 

We are using KL17Z256 and SDK_2.1_MKL17Z256xxx4. We don't have power reset option on our design. I2C driver can stuck at the while loops in fsl_i2c.c

/* Wait until data transfer complete. */
while (!(base->S & kI2C_IntPendingFlag))
{
}

I2C bus release procedure is given to release the bus during power on and error cases. 

Is there anyway to debug the problem during run time if system hangs?

 

Regards,

Kayathri

Outcomes