Open ckrenslehner opened 3 years ago
Hi @Krensi,
Thank you for having reported the point. Indeed, currently, it is not possible to redefined the VECT_TAB_OFFSET
unless by manually editing the system_stm32g4xx.c file.
The point has been forwarded to our development teams. We will get back to you as soon as they provide their feedback.
With regards,
ST Internal Reference: 116475
Unless I'm misunderstanding the issue, what is the negative to using git update-index --assume-unchanged system_stm32g4xx.c
to modify this locally without git reporting an out-of-sync repo while still attempting to merge future changes?
In the file "system_stm32g4xx.c" it is necessary to uncomment a line (see code below) to change the vector table offset. I included this repository as a submodule. Therefore, I am forced to fork this repo in order to uncomment the line and commit the change.
A simple #ifdef condition could solve this.
`#if defined(USER_VECT_TAB_ADDRESS) /!< Uncomment the following line if you need to relocate your vector Table in Sram else user remap will be done in Flash. / / #define VECT_TAB_SRAM /
if defined(VECT_TAB_SRAM)
define VECT_TAB_BASE_ADDRESS SRAM_BASE /*!< Vector Table base address field.
define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
else
define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
endif / VECT_TAB_SRAM /
endif / USER_VECT_TAB_ADDRESS /`