Skip to content

Commit cb4449a

Browse files
authored
Merge pull request #12958 from VeijoPesonen/stm32wb_vtor_bootloader
Fix vector table bug when using bootloader on STM32WB55
2 parents 23b443b + a4c692b commit cb4449a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/system_stm32wbxx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ void SystemInit(void)
196196
/* program in SRAMx */
197197
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU1 */
198198
#else /* program in FLASH */
199-
SCB->VTOR = VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
199+
#include "nvic_addr.h" // MBED
200+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED
200201
#endif
201202

202203
/* FPU settings ------------------------------------------------------------*/

0 commit comments

Comments
 (0)