Two different I2C bus do not work together
Hi!
I use two I2C device on two different bus (I2C1 and I2C2) on a STM32G07B1 MCU.
The two bus works very well, if I use only one in my code.
But if I would like to use all of two, then it will go to HardFault from "__HAL_I2C_GET_FLAG".
I use the polling functions in the code.
I checked the signals with oscilloscope and logic analizator, too. The signal is very nice, no problem.
In the logic analizator I see, that the first i2c device works fine until I would like to switch on the second device on the other bus. The second device sends NOTHING.
This is my pinout:
My I2C config:
Do you have idea, what could I make?
Thank you!
Balazs
