Skip to main content
DBurr
Senior
June 3, 2020
Solved

Override default I2C GPIO settings in CubeMX?

  • June 3, 2020
  • 2 replies
  • 1203 views

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.
Best answer by TDK

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

2 replies

TDK
TDKBest answer
June 3, 2020

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
June 3, 2020

Thanks, that did it.