Changed NVIC Flash base address to support the bootloader

pull/5591/head
Helmut Tschemernjak 2017-11-27 15:32:53 +01:00
parent 65866dd10a
commit 4778a40643
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void SystemInit(void)
#ifdef VECT_TAB_SRAM
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
#else
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
#endif
}