cancel
Showing results for 
Search instead for 
Did you mean: 

Impact of VECT_TAB_OFFSET in stm32f100

tejas
Associate II
Posted on May 21, 2015 at 13:03

Hi all,

please help me understand the importance of 

1. NVIC_SetVectorTable

2. VECT_TAB_OFFSET definition inside the''system_stm32f10x.c''

Thanks and Regards 

Tejas H
1 REPLY 1
Posted on May 21, 2015 at 14:51

Might I suggest the review of the Cortex-M3 Technical Reference Manual, and Joseph Yiu's books on the cores.

The processor resets with SCB->VTOR pointing to address ZERO, the STM32 shadows the FLASH, ROM or RAM depending on the BOOTx pins at reset.

You should set the address to reflect the base of your code, if you have a boot loader the address of the application code is deeper into memory.

If the application code resides at 0x08002000, the offset would be 0x2000. The pseudo code for the function is SCB->VTOR = base + offset = 0x08002000

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..