User Activity

In STM32CubeMX, when I enable an I2C interface in SMBus mode (and no other I2C interfaces are enabled), the resulting code emitted in file stm32f4xx_hal_conf.h has this line commented out:/* #define HAL_I2C_MODULE_ENABLED  */As a consequence, stm32f4...
STM32CubeMX v6.2.1 emits the following line of code in function HAL_SMBUS_Init() in file stm32f4xx_hal_smbus.c:MODIFY_REG(hsmbus->Instance->CR1, (I2C_CR1_NOSTRETCH | I2C_CR1_ENGC | I2C_CR1_PEC | I2C_CR1_ENARP | I2C_CR1_SMBTYPE | I2C_CR1_SMBUS), (hsmb...
Kudos from