Skip to content

Commit 72c5c78

Browse files
committed
Default value for APPLICATION_ADDR if restrict_size not given
1 parent 79f06c7 commit 72c5c78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/system_RDA5991H.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ void SystemInit (void)
173173
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
174174
SCB->CPACR |= ((3UL << 10*2) | (3UL << 11*2)); /* set CP10, CP11 Full Access */
175175
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */
176-
//SCB->VTOR = RDA_CODE_BASE; /* vector table in flash */
176+
#ifndef APPLICATION_ADDR
177+
#define APPLICATION_ADDR RDA_CODE_BASE /* vector table in flash, add support for bootloader jump */
178+
#endif
177179
SCB->VTOR = APPLICATION_ADDR;
178180
NVIC_SetPriorityGrouping(0x06); /* 1 bit for pre-emption pri */
179181

0 commit comments

Comments
 (0)