Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
IP Products
Processors
Jump...
Cancel
Processors
Cortex-M / M-Profile forum
How to relocate the Cortex-M3 Vector Table
Blogs
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Accepted Answer
+1
person also asked this
people also asked this
Replies
5 replies
Subscribers
7 subscribers
Views
10547 views
Users
0 members are here
Cortex-M
Related
How to relocate the Cortex-M3 Vector Table
Offline
Davide Masi
over 7 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 7 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 7 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
Reply
Accept answer
Cancel
0
Offline
Davide Masi
over 7 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
Reply
Accept answer
Cancel
0
Offline
Joseph Yiu
over 7 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
Reply
Accept answer
Cancel
0
Offline
Joseph Yiu
over 7 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
Reply
Accept answer
Cancel
+1
Offline
Joseph Yiu
over 7 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
Reply
Reject answer
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Compiling libgcc not optimized
0
32-bit
Armv7-M
Compiling
GCC
Thumb
Cortex-M
Thumb2
Library
Arm Assembly Language (ASM)
C
Cortex-M4
2256
views
11
replies
Latest
3 months ago
by
a.surati
Not Answered
How to specify RAM location ?
0
SRAM
STM32 F1
Arm Assembly Language (ASM)
643
views
1
reply
Latest
3 months ago
by
GuillaumeP
Answered
Is it possible to enable or disable the nested interrupt mechanism on M0 ?
0
678
views
2
replies
Latest
3 months ago
by
Robert McNamara
Answered
How long are the Cortex-M7 pipeline stages?
0
Cortex-M7
Cortex-M
30848
views
18
replies
Latest
3 months ago
by
Pacocha
Not Answered
How to transfer and read weights, biases and activation functions from trained tensorflow model to nucleo-f446re or any microcontroller in keil
0
Embedded
Neural Network
Keil
TensorFlow
CMSIS
400
views
0
replies
Started
3 months ago
by
PrashanthPoobalan
<
>
View all questions in Cortex-M / M-Profile forum