diff --git a/arch/arm/src/stm32f7/stm32_i2c.c b/arch/arm/src/stm32f7/stm32_i2c.c index 7f7b735caf..ef33b706c9 100644 --- a/arch/arm/src/stm32f7/stm32_i2c.c +++ b/arch/arm/src/stm32f7/stm32_i2c.c @@ -2581,6 +2581,9 @@ static int stm32_i2c_reset(FAR struct i2c_master_s * dev) scl_gpio = MKI2C_OUTPUT(priv->config->scl_pin); sda_gpio = MKI2C_OUTPUT(priv->config->sda_pin); + stm32_configgpio(sda_gpio); + stm32_configgpio(scl_gpio); + /* Let SDA go high */ stm32_gpiowrite(sda_gpio, 1);