275. In 'G0, TIM16/TIM17 runs too fast with nondefault AHB/APB prescalers
User JohannesSt reported an issue in STM32G030, where after he set a non-1 divider on AHB, TIM16 run unexpectedly fast, and delay implemented using that timer was shorter than expected.
The reason turns out to be a design error in the 'G0 family, causing TIM16 and TIM17 to be clocked from SYSCLK, rather than from the APB-derived timer clock.
While undoubtedly surprising, this issue is documented in the errata, as TIM16 and TIM17 are unduly clocked by SYSCLK erratum.
Note, that only early revisions of the chips are affected and the issue has been fixed in newer revisions. Errata indicate, which revisions are affected. Also, newer additions to the family - such as the STM32G0Bx/STM32G0C1 - are not affected.