Skip to main content
OGhis
Senior
Aug 29, 2019 8:00 PM UTC
Question

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

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
Sep 10, 2019 3:58 PM UTC

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);