Skip to main content
Visitor II
July 29, 2026
Question

STM32F051C8T6 PWM not generating on custom TIG control board

  • July 29, 2026
  • 19 replies
  • 284 views

I am using the STM32F051C8T6 MCU for TIG welding project, but PWM is not being generated on my custom TIG control board. Can anyone help me so

 

 

19 replies

Richard Li
Senior
July 30, 2026

Thank you, Andrew! 

You are one of these best experts in this forums.

Visitor II
July 30, 2026

Since this is a custom board, I'd first verify that the PWM pin is actually configured for the correct alternate function and that the timer clock is enabled. A quick test is to toggle the same pin as a GPIO to confirm the hardware path is working. If the GPIO works but PWM doesn't, sharing the timer configuration, GPIO settings, and the relevant CubeMX configuration would make it much easier to identify the issue.

Richard Li
Senior
July 30, 2026

This issue is cause by HAL, after HAL init, I use debug look for SFRs, most registers didn’t change, so I wrote register setting.

Even I write in by register setting, the CCMR1 didn’t change, then I ask AI, give me these codes, write in CCMR1 good.