cancel
Showing results for 
Search instead for 
Did you mean: 

Vector Table OffSet

yasintasan
Associate II
Posted on December 19, 2014 at 10:04

hi, i want to set an offset value to vector table of my application for writing a custom bootloader.

i set it with VECT_TAB_OFFSET definition in thesystem_stm32f4xx.c file like following:

#define VECT_TAB_OFFSET 0x00004000

but i cant confirm it from map file. it still remaining like following:

__vector_table 0x08000000 Data Gb startup_stm32f4xx.o [1]

i think, it must be like this, right?

__vector_table 0x08004000 Data Gb startup_stm32f4xx.o [1]

where did i wrong? #vectortabl #stm32f4 #bootloader #rtfm #know-your-tools
4 REPLIES 4
Posted on December 19, 2014 at 14:04

where did i wrong?

You would need to also tell the linker where to place the firmware, via the scatter file, linker script, or target GUI
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yasintasan
Associate II
Posted on December 19, 2014 at 14:49

but i use IAR as IDE. so i have no scatter file. 

Posted on December 19, 2014 at 17:12

but i use IAR as IDE. so i have no scatter file. 

And I'd know this from your original question how?

Like I said with the 'OR', it can be in a number of places, the ''linker script/scatter file'' in IAR is the .ICF, there should also be options for the project via the GUI to set this, I'd presume.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yasintasan
Associate II
Posted on December 19, 2014 at 17:20

ok then, ty very much. editing icf file had worked.

thanks again clive1.