cancel
Showing results for 
Search instead for 
Did you mean: 

PWM output generation from NUCLEO-F031K6 (MCU: STM32F031K6) is not working. Code is generated from STM32CubeMx.

S.Kamath
Associate II

I'm using NUCLEO-F031K6 (MCU: STM32F031K6) for PWM output generation (100Hz clock). Project is generated from STM32CubeMx v5.6.1.

PA11 (TIM1_CH4) is used for PWM output. No clock pulses are seen.

APB1 timer clock is 8MHz.

------------------------------------

Timer-1 settings:-

------------------------------------

Prescaler: 79

Counter Period: 999

Pulse: 500

Any clue?

GPIO toggle is working for the same pin, PA11

1 ACCEPTED SOLUTION

Accepted Solutions

Read out and check/post the TIM1 and relevant GPIO registers content.

Make sure TIM1_BDTR.MOE is set.

JW

View solution in original post

1 REPLY 1

Read out and check/post the TIM1 and relevant GPIO registers content.

Make sure TIM1_BDTR.MOE is set.

JW