Skip to main content
DBurr
Senior
Jun 3, 2020 3:39 PM UTC
Solved

Override default I2C GPIO settings in CubeMX?

Hi,

I'd like to override the GPIO settings for the I2C GPIOs. For example, I want to disable pullups and change the drive strength. In the CubeMX GUI there's not option to do this. So far I've just modified the code that gets generated but annoyingly when I make a change to the CubeMX config these changes get overwritten.

Thanks,

Doug Burrell

This topic has been closed for replies.
TDK
TDKBest answer
Jun 3, 2020 6:36 PM UTC

Enable the I2C and then navigate to System Core -> GPIO -> Configuration -> I2C to change pin settings.

"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
Jun 3, 2020 6:36 PM UTC

Enable the I2C and then navigate to System Core -> GPIO -> Configuration -> I2C to change pin settings.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DBurr
DBurrAuthor
Senior
Jun 3, 2020 8:01 PM UTC

Thanks, that did it.