
Rev. 1.00
37 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
4 Flash Memory Controller (FMC)
Booting Configuration
The system provides two kinds of booting mode which can be selected through the BOOT pin. The
value of BOOT pin is sampled during the power-on reset or system reset. Once the logic value is
decided, the first 4 words of vector will be remapped to the corresponding source according to the
booting mode. The booting mode is shown in the following table.
Table 5. Booting Modes
Booting Mode Selection Pin
Mode
Descriptions
BOOT
0
Boot Loader
The source of Vector is Boot Loader
1
Main Flash
The source of Vector is main Flash
The Flash Vector Mapping Control Register, VMCR, is provided to change the setting of the vector
remapping temporarily after the chip reset. The reset value of VMCR is determined by the BOOT
pin status which will be sampled during the reset duration.
Hard Fault Handler
NMI Handler
Program Counter
Initial Stack Point
0x0
0x4
0x8
0xC
0x0000_0000
+ 0x4
+ 0x8
+ 0xC
0x1F00_0000
+ 0x4
+ 0x8
+ 0xC
1 : Main Flash
0 : Boot Loader
Boot Setting
Figure 7. Vector Remapping