Skip to main content
Tomohiro Shirane
Associate II
June 7, 2018
Solved

CubeMX I2C Configuration issue with STM32H753IIKx

  • June 7, 2018
  • 1 reply
  • 1578 views
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

    This topic has been closed for replies.
    Best answer by Mohamed Mansouri
    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.

    1 reply

    Mohamed Mansouri
    Mohamed MansouriBest answer
    Visitor II
    June 21, 2018
    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.

    Tomohiro Shirane
    Associate II
    June 22, 2018
    Posted on June 22, 2018 at 02:54

    Hello, Mohamed-san

    Thank you for your reply.

    I understood your comment.

    Shirane.