Always SCL High, SDA Low In I2C
I am using the STM32F413ZH (T6U) model, there is no problem with this model, it is a very nice model in terms of features. However, problems start when I use the I2C protocol.
When I checked the line with a logic analyzer, I saw that the SCL line is always pulled high and the SDA line is always pulled low. In fact, the module I use for I2C has pull-up resistors on it, as it should. Of course, I have changed the module several times and tried with other modules, but the result is the same. Moreover, even toggling nine times to save the line does not work.
I have read the communities and articles on the internet about the issue, but the solutions that are said to be done are not final.
Afterwards, I wondered if there was a problem with STM and tried with different cards, but again, as with STM, sometimes it worked and sometimes it locked up.
Note: On other boards, I couldn't toggle the line nine times because I used a high level library instead of writing register level code as in STM.
In the documents of NXP, the developer of the I2C protocol, it is stated that I2C is an inherently crash-prone protocol and suggested the solution I wrote.
There is no other solution I can think of, can you help me? Thank you in advance.
Sensors I use: mpu6050, qmc5883l
The board: Stm32f413zh
The Software: Stm32CubeIde
