AnsweredAssumed Answered

Copy vector to RAM

Question asked by Xavier BUHOT on Jun 22, 2015
Latest reply on Jun 23, 2015 by ZhangJennie

Hello,

 

I would like to know the goal of the RAM copy of the vector.

 

In my kinetis K60 example there is in the start function:

 

/* Copy the vector table to RAM */

  if (__VECTOR_RAM != __VECTOR_TABLE)

  {

    for (n = 0; n < 0x410; n++)

      __VECTOR_RAM[n] = __VECTOR_TABLE[n];

  }

  /* Point the VTOR to the new copy of the vector table */

  write_vtor((uint32)__VECTOR_RAM);

 

What is the main advantage to copy the vector table into the RAM?

 

 

Best regard.

Outcomes