Skip to main content
nj_boelskov
Associate III
February 14, 2008
Question

Simple Interrupt!

  • February 14, 2008
  • 2 replies
  • 468 views
Posted on February 14, 2008 at 11:15

Simple Interrupt!

    This topic has been closed for replies.

    2 replies

    ivanov-i
    Associate
    May 17, 2011
    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

    nj_boelskov
    Associate III
    May 17, 2011
    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 ]