
CH32V003
Reference Manual
V1.3
169
Bit
Name
Access
Description
Reset
value
[31:0]
OBKEYR
WO
Select word key for entering the select word key
to release OPTWRE.
X
16.3.4 OBKEY register (FLASH_OBTKEYR)
Offset address: 0x08
31
30
29
28
27
26
25 24 23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
LOCK MODE
Reserved
EOP WRPRT
ERR
Reserved
BSY
Bit
Name
Access
Description
Reset
value
[31:16]
Reserved
RO
Reserved
0
15
LOCK
RW
BOOT zone lockout
1: Locked
0: Unlocked.
1
14
MODE
RW
Combined with BOOT_AVA, you can control
the switch between user area and BOOT area
1
:
After software reset, you can switch to the
BOOT area.
0: After software reset, you can switch to the
user area.
0
[13:6]
Reserved
RO
Reserved
0
5
EOP
RW1
Indicates the end of the operation, and write 1
clears 0.
The hardware is set each time it is successfully
erased or programmed.
0
4
WRPRTERR
RW1
Indicates a write protection error, write 1 clear.
The hardware will set the address if it is
programmed for write protection.
0
[3:1]
Reserved
RO
Reserved
0
0
BUSY
RO
Indicates busy status.
1: Indicates that a flash operation is in progress.
0: End of operation.
0
Note: When performing the programming operation, you need to make sure the STRT bit of FLASH_CTLR
register is 0.
16.3.5 Configuration register (FLASH_ CTLR)
Offset address: 0x10
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
BUF
RST
BUF
LOA
D
FTER FTPG
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FLO
CK
Reserved EOPI
E
Reser
ved
ERRI
E
OBW
RE
Reser
ved
LOC
K
STR
T OBER
OBP
G
Reser
ved MER SER PG