2016-02-06 02:01 PM
Hello,
while dealing with custom bootloader we have to switch application to certain offset address. Thus we have to move the address of the vector table. While HSE values are supported to be customized vector table offset is not. please add following lines to the system_stm32xxxx.c files: /* &sharpdefine VECT_TAB_SRAM */ ---> &sharpif !defined(VECT_TAB_OFFSET) &sharpdefine VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ ---> &sharpendif Thanks, Regards, Adib. /******************************************************************************/ #cubemx-stm32-hal2016-02-08 12:23 AM
Hi adib,
Thanks for the suggestion! I will forward this to our team.-Syrine-2016-02-12 10:43 AM
2016-02-23 06:47 AM
Hello,
Thank you for your post. This enhancement is already planned and shall be ready for deployment this semester as part of STM32Cube embedded software official releases. Best regards2016-02-27 04:55 AM
Hello ST Team,
thank you for this information. While you are on #define statements please also check: https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fCubeMx%20STM32F4%201%2e11%20SPI%20critical%20bug%20introduced%20in%20codegenerator&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E... Regards, Adib. --2017-04-03 04:34 AM
Hello All,
still this Bug exists:
STM32CubeMX 4.20 + STMCubeF4 1.15
When I program for my custom bootloader layout, I do have to move the vector table.
Very anoying bug.
please fix.
Adib.
--
2017-04-03 10:31 AM
They should just stop using the define, and get the linker to do this using a symbol for the Vector Table, it's what sane people do...
2018-08-20 06:06 AM
And it's not even a
#ifndef VECT_TAB_OFFSET
#define VECT_TAB_OFFSET 0
#endif
:crying_face: And as it's not part of the template engine I can't even use that to fix this... -> Running patch as part of the make process it is....
2018-08-20 06:19 AM
It's stupid by design, people with any conception of how compilers/linkers work would have used a symbol from the outset. Defining things in multiple places is a recipe for failure. The linker in this situation determines the "built-at" address.