This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c question

Hi,
I poll an i2c device every 250[ms] without any runtime issues, but sometimes I see that if I reset the MCU using the debugger while this polling takes place (thus without a power cycle) the busy bit of my i2c peripheral remains active, which prevents i2c devices configuration during the next startup. The data sheet of the STM32F4 says that the busy bit is enabled if either SCL or SDA are driven low which is indeed the case (I measure with a scope).
My question is: is it possible that SCL or SDA remain driven my the i2c device because of the abrupt reset of the MCU occured while the device was communicating? I use poll up resistors.
Thanks in advance.

0