Skip to main content
mfranklin
Associate II
May 15, 2012
Question

Determining the value of VECT_TAB_OFFSET

  • May 15, 2012
  • 1 reply
  • 628 views
Posted on May 15, 2012 at 02:39

I recently had a problem where my SysTick_Handler wasn't firing.  The solution was to change the VECT_TAB_OFFSET from 0x00 to 0x4000.  How does one determine what his value should be?  If it can be different based on one's individual configuration, what configuration settings affect this value?

STM32F207ZET6 with IAR Workbench

#vector-systick
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 15, 2012
Posted on May 15, 2012 at 03:16

It depends on the base address you compiled/linked your code at. Try looking at a .MAP file and see where __vector_table is situated, and then program the Cortex-M3 with that address. It needs to be on a 512 byte boundary.

In startup_stm32xyz.s

... 
 

PUBLIC __vector_table
DATA
__vector_table
DCD sfe(CSTACK)
DCD Reset_Handler ; Reset Handler
DCD NMI_Handler ; NMI Handler
DCD HardFault_Handler ; Hard Fault Handler
...

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