cancel
Showing results for 
Search instead for 
Did you mean: 

TIM14 OC1 Trigger into TIM2 on STM32G071

danielbathtub
Associate III

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. 

danielbathtub_0-1762846429156.pngdanielbathtub_1-1762846482415.png

 

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

 

 

2 REPLIES 2
Gyessine
ST Employee

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.

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