cancel
Showing results for 
Search instead for 
Did you mean: 

Initialization of TIM1 in CubeMX doesn`t work.

Andrew Androsow
Associate II
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
2 REPLIES 2
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
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.