lpcware

Relocate vector table to SRAM

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Albert on Mon Mar 21 20:54:19 MST 2011
Hi all,

I tried to use the function NVIC_SetVectorTable( ) but the LPCXpresso IDE point a error. Someone can explain why?

Code:
#ifdef __USE_CMSIS
#include "LPC17xx.h"
#endif

#include <cr_section_macros.h>
#include <NXP/crp.h>

#include <NXP/LPC17xx/nvic.h>

void main ( )
{
NVIC_SetVectorTable(NVIC_VectTab_RAM,0);
...
}

Other question is,
If I use the instruction SCB->VTOR = 0x20000000; instead of NVIC_SetVectorTable(NVIC_VectTab_RAM,0);, why I don't see on 0x1000 0000 to 0x1000 0100 any change?

Thank!

Outcomes