Closed keadwen closed 2 years ago
Tiny correction to point 2.
The logic in the code was correct. Only the reference clock was invalid. If a prescaler is set NotDivided then we have /1 (captured in _ match). Otherwise, we do have /2 (captured in other matches).
@andresv PTAL
@keadwen thanks for finding this out. I'll double check it later.
G'day
I've identified an inconsistency in the RCC configuration. According to page 166/1390 RM0444 Rev 5, the apb_clk is not driven by sys_freq, but ahb_freq.
In the further review of the RCC configuration freeze, I've noticed 3 separate inconsistencies with the RM0444 and STM32CubeMX Clock Configuration section:
Image reference from STM32CubeMX for STM32G071GBU6
Thanks, Jakub