PWM generation in timer 2
I am using stm32g431c8u6 microcontroller . I have enabled timer 2 channel 3 for alternative pin of PB10 and I have enabled channel 4 for PA3 pin. I set counter perioud 499 and prescaler value =0.


When I plug the debugger and run the code only channel 4 generate PWM signal and channel 3 does not generate PWM signal.
I am using DRV8845 motor drive to control 2 motors. It has two direction pins t control two motors. Below I linked the MCU pin configuration.

This is my code to move forward the 2 motors.
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,0);
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_10,1);
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_0,1);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,1);
TIM2->CCR3 = 400; //out_pid;
TIM2->CCR4 = 400;//out_pid;
Please guide me to how to enable PWM signals for both channels. Thank you.
