Merge pull request #12958 from VeijoPesonen/stm32wb_vtor_bootloader

Fix vector table bug when using bootloader on STM32WB55
pull/12971/head
Martin Kojtal 2020-05-13 19:23:42 +02:00 committed by GitHub
commit cb4449a727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ void SystemInit(void)
/* program in SRAMx */
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU1 */
#else /* program in FLASH */
SCB->VTOR = VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#include "nvic_addr.h" // MBED
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED
#endif
/* FPU settings ------------------------------------------------------------*/