Associate
November 21, 2013
Question
Problem using NVIC_SetVectorTable on StmF3Discovery
- November 21, 2013
- 2 replies
- 767 views
Posted on November 22, 2013 at 00:44
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? Cheers