AnsweredAssumed Answered

Problem using NVIC_SetVectorTable on StmF3Discovery

Question asked by veprek.kajetan on Nov 22, 2013
Latest reply on Nov 22, 2013 by veprek.kajetan
Hi there,

I've got a problem here using NVIC_SetVectorTable().
I have attached my test programm, which is held very simple and does:
- Init Leds&UserButton
- make sure the "new" Vectortable is 0x200-aligned
- Copy the VectorTable from 0 to MyVectTable (0x20000200)
- // at the moment deactivated: change Systick-vector so I can see the new one is used
- Activate Systick to have an interrupt occuring
- When the UserButton is pressed, call NVIC_SetVectorTable(NVIC_VectTab_RAM,(int) &MyIsrTable);

And then the program counter ends up at 0x0 (but I had other weired effects when I slightly changed the code, e.g. PC at 0x20000200 or running wildly somewhere)

I guess I am missing a small but important detail. Can anyone see it?