Skip to content

Commit 4778a40

Browse files
committed
Changed NVIC Flash base address to support the bootloader
1 parent 65866dd commit 4778a40

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void SystemInit(void)
110110
#ifdef VECT_TAB_SRAM
111111
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
112112
#else
113-
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
113+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
114114
#endif
115115

116116
}

0 commit comments

Comments
 (0)