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?