Can not jump to Timer interrupt function in STM32F4 discoverty
The following works (i.e. triggers interrupts) on my STM32F4Discovery board under the Coocox environment using GCC:

#include    "stm32f4xx.h"

int main (void) {
SystemInit();
NVIC-&gt;ISER[0] |= 0x10000000;
RCC-&gt;APB1ENR |= 1;
TIM2-&gt;CR1 = 0x0010;
TIM2-&gt;ARR = 0x8000;
TIM2-&gt;CR2 = 0;
TIM2-&gt;SMCR = 0;
TIM2-&gt;DIER = 0x0001;
TIM2-&gt;CR1 |= 0x0001;
while (1);
}

void TIM2_IRQHandler (void) {
TIM2-&gt;SR &amp;= 0xfffe;
}


I'm pretty sure that the reason is that I don't actually start the timer (set bit 0 of TIM2->CR1) until after everything else is configured.