Skip to main content
Graduate II
November 11, 2025
Question

TIM14 OC1 Trigger into TIM2 on STM32G071

  • November 11, 2025
  • 1 reply
  • 196 views

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

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    November 11, 2025

    hello @danielbathtub 
    Can you share your .ioc file?
    BR
    Gyessine

    Graduate II
    November 11, 2025

    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 

     

    Super User
    November 11, 2025

    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