10 years, 2 months ago.

I2C2 on ST Nucleo F103RB.

Hi,

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, Pablo. -

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.

Regards

posted by Julien Kern 05 Jun 2015

3 Answers

10 years, 2 months ago.

i dod not, but just remind you i2c needs 10k pull up resistors for sda scl.

will try with my board and let you know

posted by j. n. 10 Sep 2014

Yes this is understood and verified. FYI the execution seems to be stuck in the I2C instance constructor.

posted by Pablo Madewish 10 Sep 2014
9 years, 5 months 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.

Regards

10 years 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?

-Paul