Skip to main content
GSewe
Associate
January 14, 2022
Solved

STM32L072 - PWM out of PB15

  • January 14, 2022
  • 3 replies
  • 1136 views

I am using the STM32L072CBT and wish to use PB15 as PWM output. I have created the project in CubeMx but selecting PB15 offers no timer channels at all. I have double checked the data sheet which shows PB15 with AF1 as TIM15_CH2. I have created a new empty project and tried the same just to make sure that there is no clash but I see the same. Am I missing something obvious here?

Any comments, much appreciated

This topic has been closed for replies.
Best answer by Peter BENSCH

Welcome, @GSewe​, to the community!

with the STM32L072, PB15 has no possibility to output PWM from a timer. What makes you think this will work?

Regards

/Peter

<edit>You have mixed it up with the STM32F072...</edit>

3 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 14, 2022

Welcome, @GSewe​, to the community!

with the STM32L072, PB15 has no possibility to output PWM from a timer. What makes you think this will work?

Regards

/Peter

<edit>You have mixed it up with the STM32F072...</edit>

In order 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.
GSewe
GSeweAuthor
Associate
January 14, 2022

Schoolboy error! I have been looking at the F072 data sheet! Thank you for your rapid reply and apologies for my mistake!

Best regards

Graham

Peter BENSCH
ST Technical Moderator
January 14, 2022

Don't worry, things happen. ;)

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order 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.