I'm working with LPC51u68, and I want to copy the vector table from flash to SRAM0.
Vector table is at 0x00000000 at flash and need to go to 0x20000000, from what I understand from the user manual.
I used the VTOR register, and developed the following function:
What do you think of my approach is it correct? I am having doubts on using g_pfnVectors defined in the srtatrup file, is this really my vector table?