AnsweredAssumed Answered

STM32F4 - Reinitializing I2C driver

Question asked by kovelman.gregory on Sep 7, 2016
Latest reply on Sep 7, 2016 by kovelman.gregory
Hi,
I'm trying to deinit and then init the I2C driver during runtime of the STM32F411.
I2C1 generally works when initializing the drivers once, but when I deinit and then init them, I get a start-bit timeout - the logic analyzer shows that nothing changes on the SDA/SCL lines after the re-initialization.
I'm using the HAL drivers generated by the STM32CubeMX. To deinit, I'm using HAL_I2C_MspDeInit. To init, I'm using MX_I2C1_Init.

Any suggestion on this problem?

Best regards.

Outcomes