Question
STM32G0: PWM Pulse + One-Pulse mode


Above is the configuration of my Timer.
- To generate pulse, first I used HAL_TIM_OnePulse_Start but with that pulse was not generate.
- So I did this:
while(1)
{
HAL_TIM_PWM_Stop(&htim17, TIM_CHANNEL_1);
__HAL_TIM_SET_COUNTER(&htim17, 0);
HAL_TIM_PWM_Start(&htim17, TIM_CHANNEL_1);
HAL_Delay(100);
}- Pulse is generated but also getting a glitch pulse before the actual pulse.

This is happening due to stopping and immediately starting PWM pulse. The transition is causing this glitch.
