mirror of https://github.com/ARMmbed/mbed-os.git
Vector Table should accordng to application offset
parent
0c8196168a
commit
ee2f7ce6bb
|
|
@ -173,7 +173,8 @@ void SystemInit (void)
|
|||
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
|
||||
SCB->CPACR |= ((3UL << 10*2) | (3UL << 11*2)); /* set CP10, CP11 Full Access */
|
||||
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */
|
||||
SCB->VTOR = RDA_CODE_BASE; /* vector table in flash */
|
||||
//SCB->VTOR = RDA_CODE_BASE; /* vector table in flash */
|
||||
SCB->VTOR = APPLICATION_ADDR;
|
||||
NVIC_SetPriorityGrouping(0x06); /* 1 bit for pre-emption pri */
|
||||
|
||||
__enable_irq();
|
||||
|
|
|
|||
Loading…
Reference in New Issue