cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX V5.0.1: error in uwTimclock with STM32G0xx (with Timebase source TIM15, TIM16, TIM17)

wuio
Associate II

If, as the basis of time, I use a different timer than the systick in the hal_timebase_tim file in the ruler

 uwTimclock = HAL_RCC_GetPCLK2Freq ();

there is an error. Should

 uwTimclock = HAL_RCC_GetPCLK1Freq ();

1 ACCEPTED SOLUTION

Accepted Solutions
WBOUG
Senior

Hi @wuio​ 

Your issue has been transmitted for the dev team.

it will be implemented in the next version of the CubeMX.

Best Regards,

Wael

View solution in original post

4 REPLIES 4
Imen.D
ST Employee

Hello @wuio​ ,

Can you please share your ioc file to check this issue.

I cannot reproduce your issue, I checked from my side and I have:

 uwTimclock = HAL_RCC_GetPCLK1Freq();

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
wuio
Associate II

It depends on which timer you choose as the basis of the system time. I chose tim17 but when I chose tim 6 it was ok.

Imen.D
ST Employee

Hi @wuio​ ,

You are right, I raised this issue internally to CubeMX team for fix.

Thanks for your contribution.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
WBOUG
Senior

Hi @wuio​ 

Your issue has been transmitted for the dev team.

it will be implemented in the next version of the CubeMX.

Best Regards,

Wael