cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L072 - PWM out of PB15

GSewe
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

3 REPLIES 3
Peter BENSCH
ST Employee

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
Associate II

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 Employee

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.