I have a Host that keep sending I2C data, when I open S32K118 MCU and do flash operation.
I2C Bus abnormal condition has occurred which like picture. I don't know why I2C bus is affected by Flash operation.
Solved! Go to Solution.
1. You can do some handshake operations, such as using a GPIO port to indicate the status of the Slave, and the Master can suspend sending until the Slave resumes normal operation.
2. Or the Master checks the communication failure and then suspends sending
Because in the I2C protocol, although the clock comes from the Master node, the Slave node may only passively receives the clock from the Master, but the Slave can hold or release the clock from the Master when working, so the Clock status is not completely determined by the Master.
When you burn the program to the MCU, Slave node cannot work normally, it may always hold or release the clock, resulting in this error condition.
1. You can do some handshake operations, such as using a GPIO port to indicate the status of the Slave, and the Master can suspend sending until the Slave resumes normal operation.
2. Or the Master checks the communication failure and then suspends sending