STM32F051C8 TIMER1 PWM NOT WORKING?
HI
stm32f051 config with stmcubemx
but, timer1 and timer2 and timer3and16and17 not working for pwm generation
only timer15 good work
why????
HI
stm32f051 config with stmcubemx
but, timer1 and timer2 and timer3and16and17 not working for pwm generation
only timer15 good work
why????
You enable only the "inverted" of the complementary channels (TIMx_CHyN), look up the CCER register's description in RM:

TIM2 and TIM3 don't have complementary channels, that's why CCER there is completely zero.
However, in the GPIO AF, you have chosen the "direct" channels (without N at the end) - in all timers, except TIM15 - which you say does work.

You enable the "inverted" channels probably using HAL_TIMEx_PWMN_Start(); functions. You have to find some Cube/HAL function, probably similarly sounding, which enables the "direct" channel. I don't use Cube/HAL.
JW
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.