AnsweredAssumed Answered

STM32F205 fails after setVectorTable call

Question asked by neff.vance on Apr 4, 2014
Latest reply on Apr 6, 2014 by neff.vance
There is something basic I am overlooking but haven't been able to figure out what.

I've written a bootloader that seemed to work, but maybe it just happened to fall into the new program.

I seem to loose control after I specify a different location for the vector table.
For my testing, I display a string before and attempt to display a string after the vector table change.  Here is the code snippet.  Why does it not work.

RCC->CIR = 0x00000000;
USART3_OutString("About to setVectorTable");
SCB->VTOR = FLASH_BASE | (addressBegin & 0x1FFFFE00);
USART3_OutString("after setVectorTable");

The first string prints OK, the second does not.  The print routine is a standard polling print.
It should not matter where the vector table has been moved at this time.
I'm guessing I am not turning off interrupts properly.

Thanks for any help!
Vance

Outcomes