cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Interrupt!

nj_boelskov
Associate II
Posted on February 14, 2008 at 11:15

Simple Interrupt!

2 REPLIES 2
nj_boelskov
Associate II
Posted on May 17, 2011 at 12:23

Hey

I have some problems getting startet to use the interrupt on a MCBSTM32 kit. I want to handle the overflow interrupt from timer2, but I can´t figger out how to do it.

The interrupt is located at address 0x000000B0, but how do I tell the micro to jump to my ISR, when the interrupt occurs??

What else should i do, to get it running??

-Niels

[ This message was edited by: nj_boelskov on 14-02-2008 10:39 ]

ivanov-i
Associate II
Posted on May 17, 2011 at 12:23

Hello Niels,

Just prepare an array of 32-bit elements and put it at address 0 in the memory (it depends on the compiler, you are using).

The first item in the array is the value of MSP at start-up, the second is the reset vector and item number 44 should be a pointer to your ISR.

BTW, there is an example in the firmware library from ST - see the file stm32f10x_vector.c.

Regards,

Ivan