LPC1768 remap isr to ram

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by navman on Mon Jul 04 21:07:03 MST 2011
Is there any example code to make the ISR to run out of SRAM. I know that it involves the following steps:
1) Copy ISR from flash to SRAM.
2) Copy vector table to SRAM
3) Remap vector table to SRAM using VTOR

I'm struggling here. Any examples for such code? I'm using the LPC1768 processor with LPCxpresso IDE/compiler & need to have the EXT3 running out of SRAM as I need to do this to avoid the annoying lag(~500ns) when jumping to interrupt (maybe due to flash access resulting from a page fault).