Resolved! timer reset by clearing counter register
Hi,I'm resetting the timer without disabling it, i clear the counter register by __HAL_TIM_SET_COUNTER(&htim2, 0);this will reset the htim2.Instance->CNT, which is the counter period,however the timer was set to be count up to (prescalar) * (counter...