Resolved! When I use both chanels, what args I need in HAL_TIM_Encoder_Start?
I use CubeMX to configure my timer 2 to use Encoder Mode: "Encoder Mode TI1 and TI2". In my code should I use HAL_TIM_Encoder_Start(&htim2, TIM_CHANNEL_1)orHAL_TIM_Encoder_Start(&htim2, TIM_CHANNEL_2)orHAL_TIM_Encoder_Start(&htim2, TIM_CHANNEL_ALL)or...