Hi @AHMED,
I did some research and able to find a documentation for “ Signal Monitoring and Parameter Tuning of Generated PWM Output” regarding STM32 Processor. I know that you are trying to figure out PWM signals for Nucleo board (l432kc), it would not hurt to review the instructions provided in this documentation and experimenting on your board to see if it works.
https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/PWM-Example.html