2025-11-10 11:34 PM - edited 2025-11-10 11:35 PM
Hi,
Has anyone managed to Trigger Timer 2(Combined PWM Mode, One-Pulse) with Internal Trigger 3(ITR3). The TIM14 OC1 waveform is the trigger. When I run Timer 14 in output compare mode, with an active level on match between Couner and CCR1. I cannot trigger the Timer nothing happens. If I go an manually trigger the timer, everything works. Here is my Software to setup Timer 2 in Combined PWM Mode 2, on channel 2, One-Pulse Mode.
Image on the left is the TIM2 code and imagine on the right code for Timer 14. I have verified this works by using the debugger and seeing that TIM2 is never enabled even if the OC1 Signal on Timer 14 goes high
2025-11-10 11:41 PM
hello @danielbathtub
Can you share your .ioc file?
BR
Gyessine
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-11-10 11:51 PM
My Software doesn't rely on anything from Cube.
I don't use the IOC file, and yes I did enable the peripheral clocks before running these routines.
My experiment of using Cube I cannot achieve the above even with the IOC file
2025-11-11 2:00 AM
Settings look reasonable.
I don't have a 'G07x to try, but I'd try to toggle TIM14, perhaps in one of the PWM modes; maybe even in the debugger by forcing it high/low alternatively. Also, if there is some non-default APB prescaler, I'd try to use the default one, perhaps also try to run at the default clock settings altogether.
JW