cancel
Showing results for 
Search instead for 
Did you mean: 

TIM1 break interrupt not firing

bolurian
Associate II

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?

5 REPLIES 5
Billy OWEN
ST Employee

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

Karl Yamashita
Lead II

Did you set the NVIC?

IvanFromCyberia
Associate II

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.

> 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

IvanFromCyberia
Associate II

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 ...