cancel
Showing results for 
Search instead for 
Did you mean: 

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

OGhis
Senior

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

1 REPLY 1
OGhis
Senior

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