Skip to content

Commit ee2f7ce

Browse files
committed
Vector Table should accordng to application offset
1 parent 0c81961 commit ee2f7ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/system_RDA5991H.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ 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+
//SCB->VTOR = RDA_CODE_BASE; /* vector table in flash */
177+
SCB->VTOR = APPLICATION_ADDR;
177178
NVIC_SetPriorityGrouping(0x06); /* 1 bit for pre-emption pri */
178179

179180
__enable_irq();

0 commit comments

Comments
 (0)