Skip to main content
Visitor II
April 22, 2026
Question

How to Set PWM in CubeMx2/HA2?

  • April 22, 2026
  • 1 reply
  • 126 views

Question split from this thread.

Hi , 

Can you also provide some info on how to set pwm through timer channels ?

1 reply

mƎALLEm
Technical Moderator
April 22, 2026

Hello again,

I can propose to look at the examples provided in CubeC5 package:

https://github.com/STMicroelectronics/STM32CubeC5/tree/main/examples/hal/tim

mALLEm_0-1776862006340.png

I don't think there is a step by step guide treating PWM for the moment. This knowledge base is about How to use TIM with STM32CubeMX2 but unfortunately treats the case of a basic time base.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."