Skip to main content
OGhis
Senior
August 29, 2019
Question

BUG: STM32G474 TIM8 outputs are floating when using the non negative output channels

  • August 29, 2019
  • 1 reply
  • 561 views

Hi,

The outputs on TIMER8 of the STM32G474 are floating when using the non negative channels

This for the PWM or Compare options (PWM Generation CHx or Output Compare CHx)

When i use the negative channels everything works fine. (CHxN)

I used the following initialization code

HAL_TIM_Base_Start(&htim8);
 
 HAL_TIMEx_PWMN_Start(&htim8, TIM_CHANNEL_3 );
 HAL_TIMEx_PWMN_Start(&htim8, TIM_CHANNEL_2);
 HAL_TIMEx_PWMN_Start(&htim8, TIM_CHANNEL_1);

 STM32CubeMx 5.3.0 configured as follow (see picture)

0690X00000AAZKFQA5.png

This topic has been closed for replies.

1 reply

OGhis
OGhisAuthor
Senior
September 10, 2019

Could be resolved as follow

 HAL_TIM_Base_Start(&htim8);
 HAL_TIMEx_PWMN_Start(&htim8, TIM_CHANNEL_3);
 HAL_TIM_PWM_Start(&htim8, TIM_CHANNEL_2);
 HAL_TIM_PWM_Start(&htim8, TIM_CHANNEL_1);