Skip to main content
S.Kamath
Associate III
July 4, 2020
Solved

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

  • July 4, 2020
  • 1 reply
  • 666 views

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

This topic has been closed for replies.
Best answer by waclawek.jan

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

Make sure TIM1_BDTR.MOE is set.

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
July 4, 2020

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

Make sure TIM1_BDTR.MOE is set.

JW