Solved
Pavel A.Best answer
April 11, 2023
Do this in your SysTick_Handler
/* Change this with the debugger: */
volatile uint32_t g_value = ..... ;
void SysTick_Handler(void)
{
HAL_IncTick();
/* USER CODE BEGIN SysTick_IRQn 1 */
TIM1->CCR = g_value;
/* USER CODE END SysTick_IRQn 1 */
}