Arm Community
Site
Search
User
Site
Search
User
Groups
Research Collaboration and Enablement
DesignStart
Education Hub
Innovation
Open Source Software and Platforms
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello Forum
Operating Systems forum
SoC Design and Simulation forum
中文社区论区
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Innovation blog
Internet of Things (IoT) blog
Operating Systems blog
Research Articles
SoC Design and Simulation blog
Tools, Software and IDEs blog
中文社区博客
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Architectures and Processors forum
How to relocate the Cortex-M3 Vector Table
Jump...
Cancel
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
5 replies
Subscribers
347 subscribers
Views
13540 views
Users
0 members are here
Cortex-M
Options
Share
More actions
Cancel
Related
How was your experience today?
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
Offline
Davide Masi
over 9 years ago
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
Top replies
Offline
Joseph Yiu
over 9 years ago
+2
verified
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...
0
Offline
Davide Masi
over 9 years ago
Note: This was originally posted on 10th November 2011 at
http://forums.arm.com
Is possible to relocate the vector table also in run-time?
Thanks
Cancel
Up
0
Down
Cancel
0
Offline
Davide Masi
over 9 years ago
Note: This was originally posted on 11th November 2011 at
http://forums.arm.com
What steps should I follow to reallocate the table of vectors?
Cancel
Up
0
Down
Cancel
0
Offline
Joseph Yiu
over 9 years ago
Note: This was originally posted on 10th November 2011 at
http://forums.arm.com
Hi David,
Welcome to the forum.
Maybe you can use the Vector Table Offset Register (VTOR) to do this.
http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/Ciheijba.html
Examples can be found in various forums by searching for "SCB->VTOR".
One example is on Keil forum:
http://www.keil.com/forum/17484/
regards,
Joseph
Cancel
Up
0
Down
Cancel
0
Offline
Joseph Yiu
over 9 years ago
Note: This was originally posted on 10th November 2011 at
http://forums.arm.com
Yes, VTOR can be programmed at run time.
Cancel
Up
0
Down
Cancel
+1
Offline
Joseph Yiu
over 9 years ago
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.
Cancel
Up
+2
Down
Cancel