32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52220/HT32F52230
Option Byte Description
The Option Byte region can be treated as an independent Flash memory in which the base address
is 0x1FF0_0000. The following table shows the functional description and the Option Byte
memory map.
Table 7. Option Byte Memory Map
Option Byte Offset
Option Byte Base Address = 0x1FF0_0000
OB_PP
OB_CP
OB_CK
Rev. 1.10
OB_PP [n]: Flash Page Erase/Program Protection
(n = 0 ~ 127)
0x000
OB_PP [n] (n = 0 ~ 30)
0x004
0: Flash Page n Erase / Program Protection is enabled
0x008
1: Flash Page n Erase / Program Protection is disabled
0x00C
OB_PP [n] (n = 31 ~ 127)
Reserved
OB_CP [0]: Flash Security Protection
0: Flash Security protection is enabled
1: Flash Security protection is disabled
0x010
OB_CP [1]: Option Byte Protection
0: Option Byte protection is enabled
1: Option Byte protection is disabled
OB_CP [31:2]: Reserved
OB_CK [31:0]: Flash Option Byte Checksum
OB_CK should be set as the sum of the 5 words Option
Byte contents, of which the offset address is from 0x000
0x020
to 0x010 (0x000 + 0x004 + 0x008 + 0x00C + 0x010),
when the OB_PP or OB_CP register content is not equal
to 0xFFFF_FFFF. Otherwise, both page erase/program
protection and security protection will be enabled.
37 of 366
Description
Reset Value
0xFFFF_FFFF
0xFFFF_FFFF
0xFFFF_FFFF
0xFFFF_FFFF
0xFFFF_FFFF
0xFFFF_FFFF
November 09, 2018
Need help?
Do you have a question about the HT32F52220 and is the answer not in the manual?