cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX I2C Configuration issue with STM32H753IIKx

Tomohiro Shirane
Associate II
Posted on June 07, 2018 at 12:55

Hello,

I've created new STM32H753IIKx project with CubeMX(Ver4.26.0), and changed the I2C1/I2C2 setting into 'I2C' from 'Disable' in Pinout tab.

And, switch to Configuration tab, open the I2C1 Configuration, move to GPIO Settings tab, I can modify the Fast Mode setting to 'Enable' from 'Disable' on each PB8/PB9.

However, in the I2C2 Configuration case, I cannot modify the Fast Mode setting that shows 'n/a'.

Does this mean that I2C2 cannot be used as Fast Mode ?

Is there difference between I2C1 and I2C2 from functionality point of view ?

Thanks.

Shirane

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on June 21, 2018 at 16:47

Hi

tomohiro.shirane

,

Thanks for your feedback,

It depends on GPIO properties. In fact, not all pins provide a fast mode option. As mentioned below, extract from Reference manual, you can configure only PB6, PB7, PB8 and PB9 pins in fast mode. Therefore, This is why you can only configure I2C1 pins (PB8 and PB9 ) and I2C4 pins (PB6 and PB7) in fast mode, and not I2C2 pins (PF0 and PF1) or I2C3 pins (PA8, PC9).

0690X0000060BlgQAE.png

Hoping it helps you, please do not hesitate to contact me for further details.

Best Regards,

Mohamed.

View solution in original post

2 REPLIES 2
Posted on June 21, 2018 at 16:47

Hi

tomohiro.shirane

,

Thanks for your feedback,

It depends on GPIO properties. In fact, not all pins provide a fast mode option. As mentioned below, extract from Reference manual, you can configure only PB6, PB7, PB8 and PB9 pins in fast mode. Therefore, This is why you can only configure I2C1 pins (PB8 and PB9 ) and I2C4 pins (PB6 and PB7) in fast mode, and not I2C2 pins (PF0 and PF1) or I2C3 pins (PA8, PC9).

0690X0000060BlgQAE.png

Hoping it helps you, please do not hesitate to contact me for further details.

Best Regards,

Mohamed.

Posted on June 22, 2018 at 02:54

Hello, Mohamed-san

Thank you for your reply.

I understood your comment.

Shirane.