Question
A bug on pwm complementary output of cubemx32
Posted on June 25, 2017 at 13:07
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_SetConfigTIM_OC3_SetConfig
,have same error.