2019-08-29 01:00 PM
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)
2019-09-10 08:58 AM
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);