cancel
Showing results for 
Search instead for 
Did you mean: 

TIM5 CH4 PWM Output

AGaru
Associate III

Hi all,

i initialized the TIM5 CH4 PWM with the cube mx interface and then i used :

HAL_TIM_PWM_Start(&htim5, TIM_CHANNEL_4);

The output is supposed to be observed on PI0 - D5 on the CN4 on the back. There is nothing on the oscilloscope though. Do you know the reason? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
AGaru
Associate III

Hi, thank you.

I figured it out, i was just missing a parameter so the duty cycle was 0.

View solution in original post

2 REPLIES 2

Is this a Disco or Nucleo board? Is there anything connected on that pin on the board?

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

JW

AGaru
Associate III

Hi, thank you.

I figured it out, i was just missing a parameter so the duty cycle was 0.