2016-09-07 12:41 AM
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.2016-09-07 12:56 AM
Disregard this issue - I should have used HAL_I2C_DeInit and not HAL_I2C_MspDeInit.