i2c initialization issue in stm32f469i_Discovery
- February 22, 2021
- 4 replies
- 2006 views
It is developing products using stm32f469i_Discovery.
The stm32f469i_Discovery board is intended to be used with DS3231.
It was connected to I2C1 for I2C communication.
I2C1 initialization runs on MX_I2C1_Init();
In this function,
It is developing products using stm32f469i_Discovery.
The stm32f469i_Discovery board is intended to be used with DS3231.
It was connected to I2C1 for I2C communication.
I2C1 initialization runs on MX_I2C1_Init();
hi2c->State = HAL_I2C_STATE_RESET;
I2C communication is not possible because it is in a state.
Thus, after MX_I2C1_Init();, hi2c->State = HAL_I2C_STATE_READY; was added for use.
What I want to know is why the status of HAL_I2C_STATE_RESET continues when I2C is initialized.
For your information, I am working on it using TouchFGX.
Init Code is Add..
