Skip to main content
juvann
Associate III
February 4, 2023
Solved

STM32CubeIDE PWM Mode1/2 are missing when the channel is configured in Output compare

I have a board Nucleo WB55 and I'm configuring PWM on channel 1 of TIM2.

I know is possible configure PWM Mode 1 also on channels configured as Output Compare, but CubeIDE not allow set this configuration, I think is an issue.

I changed the init code with TIM_OC_MODE_PWM1 and works.

0693W00000YA09xQAD.png

This topic has been closed for replies.
Aymen ABBES
Aymen ABBESBest answer
ST Employee
February 7, 2023

 Hi @juvann​  ,

Thank you for your contributions and for your detailed explanations,

I confirm the issue on my side, it has been reported to STM32CubeMX development team .

Internal ticket number: 144724 (This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

Hope this answered your question.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Regards,

Aymen

2 replies

gbm
Super User
February 4, 2023

PWM1 is simply a variant/superset of Compare mode; software-wise it is simply compare mode, it just controls the hardware output differently. You may configure PWM mode and keep the output disabled - then there is no difference between these two modes.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Aymen ABBES
Aymen ABBESBest answer
ST Employee
February 7, 2023

 Hi @juvann​  ,

Thank you for your contributions and for your detailed explanations,

I confirm the issue on my side, it has been reported to STM32CubeMX development team .

Internal ticket number: 144724 (This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

Hope this answered your question.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Regards,

Aymen