GD32W51x User Manual
85
2.5.3.
Status register (FMC_STAT)
Address offset: 0x0C
Reset value: 0x0000 0000
This register is non-secure. Protected against non-provileged access when FMC_PRIV=1.
This register has to be accessed by word (32-bit).
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
Reserved
ENDF
WPERR OBERR
Reserved
BUSY
rc_w1
rc_w1
rc_w1
r
Bits
Fields
Descriptions
31:6
Reserved
Must be kept at reset value.
5
ENDF
End of operation flag bit
When the operation executed successfully, this bit is set by hardw are. The softw are
can clear it by w riting 1.
4
WPERR
Erase/Program protection error flag bit
When erase/program on protected pages, this bit is set by hardw are. The softw are
can clear it by w riting 1.
3
OBERR
Option bytes error flag bit (If there are option bytes)
If user set the TZEN bit w hen the Flash is not in no protection state, this bit is set.
If user does not clear the TZEN bit at the same time w hen the Flash security
protection returns to unprotected, this bit is set.
If an invalid secure DMP area is defined (DMPx_EPAGE> SECMx_EPAGE), this
bit is set and the FMC_DMPx modification is discarded.
The softw are can clear it by w riting 1.
2:1
Reserved
Must be kept at reset value.
0
BUSY
The Flash is busy bit
When the operation is in progress, this bit is set to 1. When the operation is end or
an error is generated, this bit is cleared to 0.
2.5.4.
Control register (FMC_CTL)
Address offset: 0x10
Reset value: 0x0000 0080
This register is non-secure. Protected against non-provileged access when FMC_PRIV=1.
This register can only be written when the BUSY bit in FMC_CTL and SECBUSY bit in