Skip to main content
AGaru
Associate II
Oct 11, 2019 6:49 AM UTC
Solved

TIM5 CH4 PWM Output

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.

This topic has been closed for replies.
AGaru
AGaruBest answer
Associate II
Oct 15, 2019 7:45 AM UTC

Hi, thank you.

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

2 replies

waclawek.jan
Super User
Oct 11, 2019 7:46 AM UTC

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
AGaruAuthorBest answer
Associate II
Oct 15, 2019 7:45 AM UTC

Hi, thank you.

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