AnsweredAssumed Answered

STM32F103XX I2C Busy Flag after unsuccessful transfer

Question asked by prokudin.alexei on May 31, 2015
Latest reply on May 31, 2015 by flown.tesca
Hi everyone. Did anybody deal with situation when I2C flag keeps being set after unsuccessful transfer (write). Lets imaging that your slave device is not connected right now or it fails to respond. First call to I2C-> HAL_I2C_Master_Transmit fails with HAL_TIMEOUT. After that, SR2 register has a I2C_FLAG_BUSY set and where is no way to clear it or I have found none. Call to deinit and then init to I2C does nothig, How do i reset I2C bus to clear that bit?