Are you working on the same project as @Siddhi here:
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
I didn’t change every code in your project, after TIM14 init, the “__HAL_TIM_SET_COMPARE(&htim14, TIM_CHANNEL_1, 5000);” the 5000 too big, force TIM14 stop, if you reduce 5000 to 100, it will continual output pulse.
I used debug step by step, before this set 5000, pulse come out.
Please find some one in local help you, your STM32 code knowledge not enough handle this project.
your STM32 code knowledge not enough handle this project.
+1
@Siddhi @Niva Go back to basics: start with a Nucleo board (or similar); work through basic examples; start simple; add step-by-step
Also:
(those are two different posts in the same thread)
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Attached new code change CCR1 to 5000 fit your original code, it verify by STM32 f0 discovery board , PA4 output pulse frequency 4.8K duty 50%, you can download to F0 discovery test first, maybe your new board with another problem.