cancel
Showing results for 
Search instead for 
Did you mean: 

How are Interrupt Handlers placed in the vector table?

mandrake
Senior
Posted on December 15, 2011 at 01:40

I am testing interrupts in general, TIM3_IRQHandler( ) specifically. I am trying to create a new handler for TIM2.

I see in the TIM_TimeBase example where this is defined.

How and where does the address of the IRQHandler get identified in the interrupt vector table? I cannot find it anywhere.
2 REPLIES 2
Posted on December 15, 2011 at 01:55

The vector table is typically placed in the startup_stm32f4xx.s file. This also contains so weak linkage routines for interrupt handlers if you don't provide them. The body for most interrupts exists in stm32f4xx_it.c, but clearly you could park them anywhere you wanted.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mandrake
Senior
Posted on December 15, 2011 at 02:47

Thanks for that. Now I see it. Also I found out that the names of the handlers are predefined as in the vector table. I don't need to do anything, just create the desired handler with the designated name. My TIM2 interrupt is now working fine.