AnsweredAssumed Answered

A bug on pwm complementary output of cubemx32

Question asked by dengrui dengrui on Jun 25, 2017
Latest reply on Nov 26, 2017 by Dave McCoy

When i want to produce a pwm complementary output ,the chip is stm32f103c8, only main connel have output and auxiliary have no output . I track program to file stm32f1xx_hal_tim.c on funtion : TIM_OC1_SetConfig and find line:
tmpccer &= ~TIM_CCER_CC1NE;
This line is wrong and shoud be change to :
tmpccer |= TIM_CCER_CC1NE;
Other fucntion as to TIM_OC2_SetConfig TIM_OC3_SetConfig ,have same error.