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
Hi
Take a look at http://www.utasker.com/docs/uTasker/uTasker_I2C.pdf
and https://community.nxp.com/message/808811
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
Kinetis KL25, KL26, KL27, KL28, KL82:
- http://http://www.utasker.com/kinetis/FRDM-KL25Z.html
- http://www.utasker.com/kinetis/TWR-KL25Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL26Z.html
- http://www.utasker.com/kinetis/TEENSY_LC.html
- http://www.utasker.com/kinetis/FRDM-KL27Z.html
- http://www.utasker.com/kinetis/Capuccino-KL27.html
- http://www.utasker.com/kinetis/FRDM-KL28Z.html
- http://www.utasker.com/kinetis/FRDM-KL82Z.html
I2C: http://www.utasker.com/docs/uTasker/uTasker_I2C.pdf [compatible with all I2C and LPI2C types and proven in 2 years of intensive KLx7 industrial product operation]
Build with: CW10.x, KDS, MCUXpresso, IAR, Keil, Greenhills, Crossworks, CooCox, Atollic, S32 Design Studio, GNU Make and Visual Studio
Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html