From 5542af8b7c1ec7359616d2e2521a5654547554b2 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Mon, 5 Jan 2015 11:15:54 +0800 Subject: [PATCH] lpc43xx/driver: fix the VTOR setting --- bsp/lpc43xx/drivers/board.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bsp/lpc43xx/drivers/board.c b/bsp/lpc43xx/drivers/board.c index 421298c19e..b7d3ead87e 100644 --- a/bsp/lpc43xx/drivers/board.c +++ b/bsp/lpc43xx/drivers/board.c @@ -43,13 +43,12 @@ void rt_hw_board_init() { #ifdef CORE_M4 /* NVIC Configuration */ -#define NVIC_VTOR_MASK 0x3FFFFF80 #ifdef VECT_TAB_RAM /* Set the Vector Table base location at 0x10000000 */ - SCB->VTOR = (0x10000000 & NVIC_VTOR_MASK); + SCB->VTOR = 0x10000000; #else /* VECT_TAB_FLASH */ /* Set the Vector Table base location at 0x00000000 */ - SCB->VTOR = (0x00000000 & NVIC_VTOR_MASK); + SCB->VTOR = 0x1A000000; #endif #endif /* update the core clock */ -- GitLab