This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to relocate the Cortex-M3 Vector Table

Note: This was originally posted on 9th November 2011 at http://forums.arm.com

Hello,
I am Davide Masi and I work on Fujitsu based on ARM Cortex M3.

How do I relocate the interrupt vector table from address 0x0000 to a different address, for examples in RAM?
Where can I find examples or AN about the problem?

Thanks
Parents
  • Note: This was originally posted on 11th November 2011 at http://forums.arm.com

    Let's say you want to relocate vector table from flash to SRAM:
    - reserve an area in SRAM for Vector table when you setup your project (tool chain dependent). This area need to align with the size of the table (see the link I provided in previous message).
    - during run time, copy the vector table from flash to the reserved vector table area, and then modify the vector entry you need to change if required.
    - write the new vector table address to VTOR.
Reply
  • Note: This was originally posted on 11th November 2011 at http://forums.arm.com

    Let's say you want to relocate vector table from flash to SRAM:
    - reserve an area in SRAM for Vector table when you setup your project (tool chain dependent). This area need to align with the size of the table (see the link I provided in previous message).
    - during run time, copy the vector table from flash to the reserved vector table area, and then modify the vector entry you need to change if required.
    - write the new vector table address to VTOR.
Children
No data