cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBEMX doesn't show GPIO Pull-up/Pull-down option for I2C

ISeed
Senior

Hello,

I'm trying to imitate an I2C solution. I'm using STM32F100RB.

When selecting I2C ->

In the example, they have these GPIO settings for I2C pins:

Note the GPIO Pull-up/Pull-down option:

0690X000008a7jqQAA.jpg

Here is mine:

0690X000008a7kFQAQ.jpg

The CUBE version is identical.

The I2C configuration is identical.

What could be the reason?

Thanks!

11 REPLIES 11

But this workaround is not a good solution, as the user codes will be wiped off whenever the IOC is compiled. The pull up done in CubeMX is a better choice.

Brian

It's a workaround, but that's ok. If your work's important, version-control it. And after any cube-change just revert any of its changes you don't want