AnsweredAssumed Answered

F3 PWM inverted out: Cube bug?

Question asked by Andrea Coccon on Feb 16, 2017

Using CubeMX I wanted to set four pins for PWM generation on an F302RCT, so it happened to get channels 1, 2, 3 and 4 on pins 27, 41, 44 and 45. Channels 2 and 3 fell on inverted output pins.

When turning all pwm's on I found that only channels 1 and 4 were working as expected while 2 and 3 where off (stable reset).

After looking into registers and inner library calls I found out that in the CCER register of TIM1 only bit CCxE was set while, on inverted channels, bit CCxNE should have been set.

Doing that manually made outputs work.


Am I missing something or is it a bug?