5.29 Vector table for ARMv6-M and ARMv7-M profiles

The vector table for the microcontroller profiles consists of addresses to the relevant handlers.

The handler for exception number n is held at (vectorbaseaddress + 4 * n).

In ARMv7-M processors you can specify the vectorbaseaddress in the Vector Table Offset Register (VTOR) to relocate the vector table. The default location on reset is 0x0 (CODE space). For ARMv6-M, the vector table base address is fixed at 0x0. The word at vectorbaseaddress holds the reset value of the main stack pointer.

Note:

The least significant bit, bit[0] of each address in the vector table must be set or a HardFault exception is generated. ARM Compiler toolchain normally enables this for you if Thumb symbol names are used in the table.

Non-ConfidentialPDF file icon PDF versionARM DUI0471M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.