Skip to content

Commit

Permalink
Merge pull request #2061 from fpistm/H7_VECT_TAB_BASE_ADDRESS
Browse files Browse the repository at this point in the history
system(H7): allow VECT_TAB_BASE_ADDRESS redefinition
system(WL): allow VECT_TAB_BASE_ADDRESS redefinition
  • Loading branch information
fpistm committed Jul 10, 2023
2 parents b0ac294 + 3b1bd3b commit baf3e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion system/STM32H7xx/system_stm32h7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
This value must be a multiple of 0x300. */
#endif

#ifndef VECT_TAB_BASE_ADDRESS
#if defined(DUAL_CORE) && defined(CORE_CM4)
#if defined(VECT_TAB_SRAM)
#define VECT_TAB_BASE_ADDRESS D2_AXISRAM_BASE /*!< Vector Table base address field.
Expand All @@ -99,7 +100,7 @@
This value must be a multiple of 0x300. */
#endif /* VECT_TAB_SRAM */
#endif /* DUAL_CORE && CORE_CM4 */

#endif /* !VECT_TAB_BASE_ADDRESS */


/******************************************************************************/
Expand Down
5 changes: 4 additions & 1 deletion system/STM32WLxx/system_stm32wlxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,29 @@
#define VECT_TAB_OFFSET 0x00008000U /*!< Vector Table base offset field.
This value must be a multiple of 0x100. */
#endif
#ifndef VECT_TAB_BASE_ADDRESS
#if defined(VECT_TAB_SRAM)
#define VECT_TAB_BASE_ADDRESS SRAM2_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x100. */
#else
#define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x100. */
#endif /* VECT_TAB_SRAM */

#endif /* !VECT_TAB_BASE_ADDRESS */
#else /* CORE_CM4 */
#ifndef VECT_TAB_OFFSET
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
This value must be a multiple of 0x100. */
#endif
#ifndef VECT_TAB_BASE_ADDRESS
#if defined(VECT_TAB_SRAM)
#define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x100. */
#else
#define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
This value must be a multiple of 0x100. */
#endif /* VECT_TAB_SRAM */
#endif /* !VECT_TAB_BASE_ADDRESS */
#endif /* CORE_CM0PLUS */

/**
Expand Down

0 comments on commit baf3e2d

Please sign in to comment.