Skip to content

Commit 9be247a

Browse files
committed
fix(WL): wrong VECT_TAB_OFFSET for CORE_CM4
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 5dcced4 commit 9be247a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

system/STM32WLxx/system_stm32wlxx.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@
112112
in Sram else user remap will be done by default in Flash. */
113113
/* #define VECT_TAB_SRAM */
114114

115+
#if defined(CORE_CM0PLUS)
115116
#ifndef VECT_TAB_OFFSET
116117
#define VECT_TAB_OFFSET 0x00008000U /*!< Vector Table base offset field.
117118
This value must be a multiple of 0x100. */
118119
#endif
119-
120-
#if defined(CORE_CM0PLUS)
121120
#if defined(VECT_TAB_SRAM)
122121
#define VECT_TAB_BASE_ADDRESS SRAM2_BASE /*!< Vector Table base address field.
123122
This value must be a multiple of 0x100. */
@@ -127,6 +126,10 @@
127126
#endif /* VECT_TAB_SRAM */
128127

129128
#else /* CORE_CM4 */
129+
#ifndef VECT_TAB_OFFSET
130+
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
131+
This value must be a multiple of 0x100. */
132+
#endif
130133
#if defined(VECT_TAB_SRAM)
131134
#define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base address field.
132135
This value must be a multiple of 0x100. */

0 commit comments

Comments
 (0)