2023-05-03 11:46 AM - edited 2023-11-20 06:33 AM
I am using the Nucleo L476RG board and I have configured TIM2 to output PWM in Channel 1. I have very basic code that should output a 25% duty cycle because I set the PWM pulse in the TIM2 parameters settings to 250. I have tested several pwm pins and watched many tutorials but I cannot observe any PWM signal using my oscilloscope. I have used the project example in the STM32Cube_FW_L4 folder from ST, but I cannot understand why my current code does not generate a pwm.
2023-05-03 03:59 PM
Read our and check/post content of TIM and relevant GPIO registers.
JW