Repository forces one to fork it, if it is necessary to move the vector table #1
Labels
cmsis
CMSIS-related issue or pull-request.
enhancement
New feature or request
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system.
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. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #else #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field. This value must be a multiple of 0x200. */ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #endif /* VECT_TAB_SRAM */ #endif /* USER_VECT_TAB_ADDRESS */
The text was updated successfully, but these errors were encountered: