Skip to main content
Visitor II
October 10, 2023
Question

TIM1 break interrupt not firing

  • October 10, 2023
  • 5 replies
  • 1984 views

Hi,

I am configuring TIM1 to generate interrupt via MX and I can see that the ISR for TIM1 break is added to the code.
But the interrupt never triggers. I know that break from comparator does happen, but no interrupt!

Does anyone know what could be wrong?

    This topic has been closed for replies.

    5 replies

    ST Employee
    October 13, 2023

    Hi @bolurian 

     

    The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

     

    Regards,

    Billy

    Graduate II
    October 14, 2023

    Did you set the NVIC?

    Explorer
    January 29, 2024

    Hello, did you eventually manage to get Break interrupts?

    I see the same problem in STM32G431 TIM8.

    I can generate all other events interrupts, but cant see neither BREAK nor BREAK2.

    I get both breaks flags raised, but no pending interrupts from TIM8.

     

    Something is missing.

    Super User
    January 29, 2024

    > I get both breaks flags raised, but no pending interrupts from TIM8.

    Read out and check/show content of TIM8 registers.

    Generic "interrupt does not fire" checklist here.

    JW

    Explorer
    February 2, 2024

    What can I say!? RTFM!!!!

    Timer has more than 1 interrupt lines.

    And!!! Lines are often muxed with it's own or other IPs interrupt lines, when connected to NVIC.

    It is different for each timer (T1/T8/T20).

    Pay attention to NVIC settings when expect to use certain interrupts!!!

    Confusing design, though ... 

    Eh ...