Default value for APPLICATION_ADDR if restrict_size not given

pull/11888/head
fred.li 2019-11-20 10:34:34 +08:00
parent 79f06c7b6c
commit 72c5c78642
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ 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 */
#ifndef APPLICATION_ADDR
#define APPLICATION_ADDR RDA_CODE_BASE /* vector table in flash, add support for bootloader jump */
#endif
SCB->VTOR = APPLICATION_ADDR;
NVIC_SetPriorityGrouping(0x06); /* 1 bit for pre-emption pri */