I am developing a baremetal application for K64 processor using the drivers provided by SDK 2.x, the I2C driver is latest version of fsl_i2c (2.0.7).
I have a problem often reported in this forum, and I found the same solution replied all over the time, but I do not know how to implement it when the driver is already in use.
In some installation environments the i2c bus becomes weak and time to time causes that a slave looses the arbitration and hangs the bus with the I2C bus remainig busy. This can only be solved by power cycling the system.
Many people reported that a solution to this is to cycle up and down the SCL line until the slave reset and releases the bus.
I believe that this is not inplemented in the driver and I do not know how to switch to GPIO the SCL and SDA line and switch it back to the diriver control after the bus is released.
Anyone can help with some guiding?
Thanks in advance,