Skip to main content
wfd
Associate II
July 18, 2023
Question

Cannot get PWM to work on the STM32L552-Q board

  • July 18, 2023
  • 3 replies
  • 2049 views

I have turned on the Timer 1 and have gone through several tutorials to get pins PE0, PE11, PE13 and PE14 to pulse but I cannot get any sort of signal output. I'm attaching to project.  The configurations are in main.h, I turn all the timers on in Main.c and that's pretty much it. Can someone help me? 

Thanks 

Bill

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
July 19, 2023

I don't understand Cube, but usually the problem with TIM1 output channels is, that it's an Advanced timer and needs to have TIMx_BDTR.MOE to be set.

JW

wfd
wfdAuthor
Associate II
July 19, 2023

I cannot figure out where to set this bit in the entire project

Thank  you

 

Bill

waclawek.jan
Super User
July 19, 2023

In your program, after you have set up all other TIM1 registers.

JW

wfd
wfdAuthor
Associate II
July 19, 2023

I put the line in TIM1_BDTR.MOE in the code and it flagged an error. I'm sorry this is very new to me

 

Thank you

Bill

waclawek.jan
Super User
July 20, 2023

What error?

JW