2014-12-19 01:04 AM
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
2014-12-19 05:04 AM
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 GUI2014-12-19 05:49 AM
but i use IAR as IDE. so i have no scatter file.
2014-12-19 08:12 AM
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.2014-12-19 08:20 AM
ok then, ty very much. editing icf file had worked.
thanks again clive1.