cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to start PWM on STM32G491

Matthew47
Associate II

I am unable to start a PWM signal on my Nucleo board --> I was not able to observe a signal on an oscilloscope.

Please see the following code and Cube configurations.

HAL_TIM_PWM_Start(&htim2,TIM_CHANNEL_1);
TIM2->CCR1 = 30;

Matthew47_0-1752361752604.png

 

2 REPLIES 2
MHoll.2
Senior III

Difficult to help with this information.

Can You provide some aditional information ( .ioc file and if possible the code You are using)

waclawek.jan
Super User

Make sure you are observing the right pin and that there are no obstacles (e.g. solder bridge) to that signal on the board. 

Read out and check/post content of TIM and relevant GPIO registers.

JW