2025-02-19 02:54 AM - edited 2025-02-19 02:55 AM
Hi,
I am using the STM32G0B1CBTx on the STM32CubeMX and setting the I2C1 for SMBus-two-wire-Interface. I want to disable the timeouts but I noticed that when I do so, the clock timeout enable (bit 15 of I2C_TIMEOUTR register) is still high. Looking at the generated timeout value to be written in the register (0x0000830D), it shows that indeed, the STM32CubeMX is enabling the timeout even though I selected Disable. Below is a screenshoot showing this. Is this a bug in MX ?
Solved! Go to Solution.
2025-02-19 05:14 AM
The SMBUS has a timeout as part of the interface specification. It isn't optional. If you don't want a timeout, use I2C.
You have disabled the extended timeout, but the normal timeout is rightfully still there.
2025-02-19 05:14 AM
The SMBUS has a timeout as part of the interface specification. It isn't optional. If you don't want a timeout, use I2C.
You have disabled the extended timeout, but the normal timeout is rightfully still there.