In order to get PWM output to PB5, I configurated the Channel2 of TIM3 to be "PWM Generattion CH2" and the PB5 pin to "TIM3_CH2". Then, the code generated and imported into STM32CubeIDE, the pointer stopped at "void HardFault_Handler(void)" function ...