cancel
Showing results for 
Search instead for 
Did you mean: 

Possible Bug in STM32CubeMX v6.13.0

DDeba.1
Associate III

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 ?

 

DDeba1_0-1739962440422.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

The SMBUS has a timeout as part of the interface specification. It isn't optional. If you don't want a timeout, use I2C.

TDK_0-1739970846124.png

 

You have disabled the extended timeout, but the normal timeout is rightfully still there.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

The SMBUS has a timeout as part of the interface specification. It isn't optional. If you don't want a timeout, use I2C.

TDK_0-1739970846124.png

 

You have disabled the extended timeout, but the normal timeout is rightfully still there.

If you feel a post has answered your question, please click "Accept as Solution".