I2C master remain in timeout status.
Hi, I have a problem with I2C communication between two MCU.
The MCU that acts as I2C master in its main loop calls the HAL_I2C_Master_Receive function at an interval of approximately 1 second and reads the status of the MCU that acts as I2C slave.
Everything works, but I noticed that if for some reason the MCU that acts as a I2C slave is turned off and on again (a normal reset cycle for example, whatchgod timeout os something like that), the master always goes into error HAL_I2C_ERROR_TIMEOUT when it calls the HAL_I2C_Master_Receive function.
So communication only works, master and slave start together and always remain active together. But if the slave is turned off, when it is turned back on the communication no longer restarts, and continues to time out even if the slave is active.
it's as if the I2C master once goes into error, always remains in error. I need something that can "reset" the I2C master after the timeout error, I don't know if I need to clean some flags or something like that.
Can you help me?
