Diagnosing an STM32 I²C driver issue
Separate electrical faults from driver pin mapping, address conventions and unsuccessful transfers.
Start with one controller and one device
Check that SDA and SCL idle high and that the ground is shared. Begin at 100 kHz with one device and its known seven-bit address. Compare the address accepted by your API with the address byte observed on the bus.
If you see no pulses, check GPIO alternate function and peripheral clock. If pulses appear without ACK, check wiring, address and power. If ACK is present and reads stall, inspect repeated-start handling, timeouts and the peripheral error state.
