AnsweredAssumed Answered

Re-map vector table to SRAM - LPC51U68

Question asked by Carlos Medeiros on Feb 18, 2019
Latest reply on Feb 20, 2019 by Alice_Yang

Hello,

 

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?

 

Thank you.

Carlos Medeiros

Outcomes