Associate II
August 13, 2014
Question
STM32CubeMX (4.3.0) HAL driver. Start TIM8 as PWM with OCx and OCxN channels
- August 13, 2014
- 3 replies
- 2723 views
Posted on August 13, 2014 at 17:50
With the HAL_TIM_PWM_Start() command CCxNE the flag is not set in the register CCER.
In the initialisation the function HAL_TIM_PWM_ConfigChannel() call TIM_OCx_SetConfig(). Here the flags CCxE and CCxNE in register CCER are reseted. In the function HAL_TIM_PWM_Start() only the flag CCxE ist setted. If I set the flag CCxNE in the debugger, the PWM works fine.Is this a bug
or
do I have to
configure
something else
?
Attached the files generated by STM32CubeMX. The main.c file was supplemented with the timer start. #stm32-complementary-pwm-ccxne