
GD32L23x User Manual
59
Write OBKEY[31:0] with keys to unlock option bytes command in the FMC_CTL
register.
2.4.4.
Status register (FMC_STAT)
Address offset: 0x0C
Reset value: 0x0000 0000
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
FSTAT
Reserved
ENDF
WPERR PGAERR PGERR Reserved
BUSY
rc_w1
rc_w1
rc_w1
rc_w1
rc_w1
r
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15
FSTAT
Flash status
1: Flash is in sleep mode or power-down mode.
0: Flash is in IDLE mode.
14: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 hardware. The software
can clear it by writing 1.
4
WPERR
Erase/Program protection error flag bit
When erase/program on protected pages, this bit is set by hardware. The software
can clear it by writing 1.
3
PGAERR
Program alignment error flag bit
This bit is set by hardware when DBUS write data is not alignment. The software
can clear it by writing 1.
2
PGERR
Program error flag bit
When program to the flash while it is not 0xFFFF, this bit is set by hardware. The
software can clear it by writing 1.
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.