There is a bug in ` Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h`here is the solution, found this file and change#define TIM_RESET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__) \
- (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCE...