i2c normal mode - generated code contains LL_I2C_EnableFastModePlus
Hi,
I have project in cube ide 1.18.1. with stm32h523.
The generated code void MX_I2C1_Init(void) has LL_I2C_EnableFastModePlus(I2C1); at the end despite the configuration is set to normal (not fast or fast+). This looks like generator bug because I don't see the same error in stm32g071 project.
I explicitly need the normal i2c mode setting for its sink current limit. Otherwise this bug may actually cause a chip damage due to over current.
Can anyone confirm if this is indeed a bug?
It is easy to reproduce. just create empty project with i2c and set the driver to LL. the 100kHz normal is the default.
I tested it with real cpu and even if I replace it with LL_I2C_DisableFastModePlus it still seems to sink >20mA so it does not behave as the datasheet suggests. I did not find specification for current in normal mode, but I would expect something above 4mA based in i2c protocol spec and safe margin below 25mA which is the damage limit according datasheet.
