Solved
STM32CubeMX V5.0.1: error in uwTimclock with STM32G0xx (with Timebase source TIM15, TIM16, TIM17)
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 ();