Question
nucleo-f439zi pwm not working?
I am trying to configure PWMs on the user leds uisng the nucleo-f4329zi board (default preconfigured project) and the visual configuration of the STM32CubeIDE, but for some reason some PWM are not working.
My setup for all all PWM (aside from default values):
- clock source = internal clock
- channelX = PWM Generation CHX (or CHXN)
- counter period = 999
- auto-reload preload = enabled
- pulse = 499
- in main.c = using HAL_TIM_PWM_Start() after timer MX_TIMX_Init()
I tried the following PWMs:
- TIM1_CH2N (PB0 - Green LED) - Fail
- TIM8_CH2N (PB0 - Green LED) - Fail
- TIM3_CH3 (PB0 - Green LED) - Fail
- TIM1_CH2N (PB14 - Red LED) - Fail
- TIM8_CH2N (PB14 - Red LED) - Fail
- TIM12_CH1 (PB14 - Red LED) - Pass
- TIM4_CH2 (PB7 - Blue LED) - Pass
I was wondering why this is happening, but I have not managed to figure it out yet. Any thoughts?
Thanks.