Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 10 months ago.
I2C2 on ST Nucleo F103RB.
I would like to use the 2nd I2C in ST Nucleo F103RB. So making the I2C instance as follows ... :
I2C i2c(PB_11, PB_10);
... does not seem to work.
Has anyone already used I2C2 on this board ? Is there any pre or post initialization to do ?
With best regards,
6 years, 1 month ago.
Hi, Have you finally managed to make it work ? I have the same problem, it seems that PB10 & PB11 are not connected to I2C2... (Error: pinmap not found for peripheral). Unfortunately I can't use I2C1 for HW reasons.
6 years, 8 months ago.
I think that you got one of the pins wrong. It seems that it should be PB_3 and PB_10, like so:
I2C i2c(PB_3, PB_10);
Did that work for you, Pablo?