AnsweredAssumed Answered

STM32CubeMX (4.3.0) HAL driver. Start TIM8 as PWM with OCx and OCxN channels

Question asked by mennekes.rolf on Aug 13, 2014
Latest reply on Sep 23, 2014 by mennekes.rolf
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.

Attachments

Outcomes