mirror of https://github.com/ARMmbed/mbed-os.git
BL NUCLEO_F746ZG: change scb->vector assignment
parent
39cc300cd2
commit
e933971f92
|
@ -30,6 +30,7 @@
|
|||
**/
|
||||
|
||||
#include "stm32f7xx.h"
|
||||
#include "nvic_addr.h"
|
||||
#include "mbed_assert.h"
|
||||
|
||||
/*!< Uncomment the following line if you need to relocate your vector Table in
|
||||
|
@ -92,7 +93,7 @@ void SystemInit(void)
|
|||
#ifdef VECT_TAB_SRAM
|
||||
SCB->VTOR = RAMDTCM_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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue