STM32U0 timer clocks x2
In contrast to the STM32L0 that I am migrating from to the newer STM32U083, the U0 clock tree (Reference manual RM0503 V2.0 figure 11) does NOT show that timer clocks are PCLK*2 when APB prescaler>1.
Also, it states in 5.2.14 that timer clock TIMPCLK is equal to PCLK. In other STM32 series like F1, L4 and L0 I was used to have timer clock doubling when PCLK<HCLK. A feature I always disliked, because it requires reconfiguring timers when you want to throttle the CPU speed.
However:
- The HAL (STM32Cube_FW_U0_V1.2.0) function HAL_RCCEx_GetPeriphCLKFreq() returns 2x PCLK, but only for TIM15 and TIM1 in that case (APB prescaler>1). This exception for TIM1 and TIM15 is nowhere to be found in the reference manual.
- When I configure TIM6 to clock from 8MHz PCLK (1/2 of my 16MHz HCLK) with prescaler 8 (PSC register value 7) it appears to run twice as fast as expected: 2MHz instead of the expected 1MHz. Apparently it is clocked bt 16MHz (2*PCLK).
(in contrast, my UARTs run at the expected 8MHz clock, as the baud rates are correct)
Can someone tell me (and afterwards upate the Reference Manual of STM32U0) for which timers the PCLK is doubled (like in other STM32 series) when the APB prescaler is larger than 1? Or is this a silicon bug and wasn't this supposed to happen?
Maybe the firmware library (hal_rcc/hal_rcc_ex) needs an update as well, if the U0 behaves like L0/L4/F1 in this case.

