Skip to Content
Block descriptionsI2CCubeMX configuration for a given MCU Model

CubeMX Configuration for a Given MCU

Below is the CubeMX configuration for the I2C interface in STM microcontrollers. Please note that these parameters are an example configuration and should be adjusted to the requirements of a specific application.

General CubeMX Settings

No.NamePathSettingSetting DescriptionScreenshot
1I2C ModePinout & Configuration > Connectivity > I2C* > ModeI2CI2C Mode should be set to I2CI2C Mode setting
2Maximum output speedPinout & Configuration > Connectivity > I2C* > GPIO Settings > click on the pin and enter the configuration window > Maximum output speedVery HighPin operating speed configuration. Apply to both pins supporting the SCL and SDA lines.I2C pin setting

Interrupts for the I2C interface are not required.

I2C* — the asterisk symbol (*) represents the number of the I2C module used in the model, e.g., I2C1, I2C2, etc.

Last updated on