I currently have an issue with TIM1 being reset unintentionally by the relationship between TIM2 and TIM5. My system has TIM2 encoder counting and generating a TRGO during compare pulses. TIM5 is set in slave: reset mode on ITR0, thus whenever an encoder tick is seen by TIM2, TIM5 resets itself. This is to get an accurate measurement of rotational velocity. My issue is that when TIM5 is set in reset mode, it also resets TIM1 which is being used to generate a PWM signal to a motor driver. When TIM5 is in any other slave mode TIM1 operates normally. The setup code is as follows :