Skip to main content
Andrew Androsow
Associate II
November 11, 2017
Question

Initialization of TIM1 in CubeMX doesn`t work.

  • November 11, 2017
  • 2 replies
  • 815 views
Posted on November 11, 2017 at 15:07

Hello! I try to use a TIM1 in a PWM bipolar mode (chip is stm32f030f4p6).I use CubeMX . But after compilation of the project the timer doesn`t work. Must I write my own code for start this timer? Thanks a lot for your answer!

#initialization-timer-hal
This topic has been closed for replies.

2 replies

waclawek.jan
Super User
November 11, 2017
Posted on November 11, 2017 at 17:26

Read out relevant GPIO and TIM registers and check if their content is as expected, or if in doubts, post here.

Note that advanced timers needb TIMx_BDTR.MOE to have set.

JW

Andrew Androsow
Associate II
November 11, 2017
Posted on November 11, 2017 at 19:02

Thanks for help! I added two functions: HAL_TIM_PWM_Start and HAL_TIMEx_PWMN_Start then complementary outputs worked.