STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
alexblack
Posts: 276
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 32 times
Contact:

STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR  Topic is solved

Postby alexblack » Wed Feb 23, 2022 2:11 pm

Hi.
For the STM32G031 and STM32G030 (maybe other G0 mcu too) there is an errata:

Code: Select all

2.5.5 TIM16 and TIM17 are unduly clocked by SYSCLK
Description
The timers TIM16 and TIM17 are unduly clocked by SYSCLK instead of being clocked by the timer clock
TIMPCLK. As a consequence, they do not reflect AHB and APB prescaler settings.
The TIM16 and TIM17 are fully functional as long as the SYSCLK-to-PCLK frequency ratio remains smaller than
or equal to four.

This fact is not taken into account, so in my project the frequency of timer TIM17 is set incorrectly, when I set the STM32_PPRE bigger then 2.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR

Postby Giovanni » Wed Feb 23, 2022 2:28 pm

Uhm, nice finding, I hope it will stay this way at least.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR

Postby Giovanni » Wed Mar 16, 2022 12:41 pm

Hi,

Fixed as bug #1226.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 6 guests