2020-11-22 05:28 AM
please review the datasheet,--4 Pinouts and pin descriptions--
from the datasheet, both PIN 42/43 and 45/46 could be I2C1;
both PIN 21/22 and 35/36 could be I2C2;
which is right exactly?
2020-11-22 06:25 AM
Whichever you chose, by setting the respective bits in GPIOx_AFR for given pin (while setting given pin to AF in GPIOx_MODER).
JW
2020-11-22 05:04 PM
Hello Waclawek:
Thanks for you answer;
But for STM32F030C8, it just has two I2C port? I2C1 and I2C2?
thanks;
2020-11-22 05:38 PM
You make this overly complicated,
You get to pick one SCL and SDA pin for each I2C1 and I2C2
The choices are constrained by the AF mappings
I2C1_SDA 43 OR 46, PICK ONE