2022-05-03 12:03 PM
I notice that the I2C1 setup in the IDE is different than the I2C2 setup. I will try I2C1 to see if it can work, but how would I get I2C2 working?
2022-05-03 1:16 PM
Well options there are that whatever else is attached to the bus is clamping them, or not in I2C mode (perhaps some SPI/I2C mode device), or that PA9/PA10 are in some initialized state (USART1) and conflicting with the settings on PA11/PA12
Check all your GPIO pin settings in code, and at register level.
Disconnect other portions of the circuit.
Check for shorts.
Perhaps check driving the GPIOs directly.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.