mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12958 from VeijoPesonen/stm32wb_vtor_bootloader
Fix vector table bug when using bootloader on STM32WB55pull/12971/head
commit
cb4449a727
|
|
@ -196,7 +196,8 @@ void SystemInit(void)
|
||||||
/* program in SRAMx */
|
/* program in SRAMx */
|
||||||
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU1 */
|
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAMx for CPU1 */
|
||||||
#else /* program in FLASH */
|
#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
|
#endif
|
||||||
|
|
||||||
/* FPU settings ------------------------------------------------------------*/
|
/* FPU settings ------------------------------------------------------------*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue