2025-08-28 9:37 AM
Hello,
I'm just a begginer with embedded and STM32 so bare with me please.
I was trying to follow a program tutorial to periodically blink an LED using a timer channel in PWM generation mode. I have an STM32 Nucleo h755zi-q board, I set the integrated LED on pin PB0 to it's alternate function which is timer 3 channel 3, I assigned timer 3 to core C7 turned on internal clock as source and set channel 3 to PWM generation. I used different setups but for example 200 Mhz on the clock, prescaler 19999, autoreload 9999, pulse 5000. I left everything else as default and generated the code and only added this line
"HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_3);"
right before the infinite loop in the main function. This should make the user LED on pin PB0 blink periodically with 1 Hz frequency I think. But the LED isn't doing anything at all.
I'm using CubeIDE obviously and using just a basic timer with interrupt works flawlessly, so where is the mistake?
Sorry for low details, I'm currently in a rush, will provide any details you ask for later.
Thanks in advance for all the suggestions :)