Skip to main content
Steve Melnikoff
Senior
November 14, 2025
Question

STM32H7Rx/Sx: Cube calculates odd timing value under certain circumstances

  • November 14, 2025
  • 1 reply
  • 155 views

Using an STM32H7Rx or Sx, using I2C2 clocked by PLL3R at 10 MHz:

If you set the I2C speed to 10 kHz with analog filter disabled, you get a timing value of 0x1010F1FF, with SCLH and SCLL values of 241 and 255. This seems reasonable.

However, if you enable the analog filter, you get 0x400007BE. This does produce the correct frequency - but the SCLH and SCLL values are 7 and 190, which do not appear to be sensible.

Is this a bug?

(I've sent an IOC file to @Souhaib MAZHOUD ; you'll need to edit the I2C2 settings to see this happen.)

 

1 reply

Technical Moderator
November 14, 2025

Hello @Steve Melnikoff 

Thank you for your reporting this issue!
I'll investigate this issue internally ((Ticket 186708 This is an internal tracking number and is not accessible or usable by customers).) and get back to you as soon as possible

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.