Skip to main content
AGaru
Associate II
October 11, 2019
Solved

TIM5 CH4 PWM Output

  • October 11, 2019
  • 2 replies
  • 906 views

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.
Best answer by AGaru

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
October 11, 2019

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
October 15, 2019

Hi, thank you.

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