GD32A50x User Manual
83
31:16
Reserved
Must be kept at reset value.
15
RSTERR
If the voltage is below 3.0V or a system reset occurs during flash programming or
erasing, an error will be generated and this bit will be set. When the error is occurred,
the data in the current address unreliable, and it is necessary to erase and program
again. And the EEPROM should be loaded again. If the voltage is lower than BOR
/ POR, the value of this bit will be reset after the BOR / POR reset, but retained after
a system reset.
Note:
Programming/erasing is not recommended when the voltage is below 3.0V.
14:7
Reserved
Must be kept at reset value.
6
CBCMDERR
The checked area by the check blank command is all 0xFF or not.
0: The checked area is all 0xFF.
1: The checked area is not all 0xFF.
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
PGSERR
Program sequence error flag bit.
0
BUSY
The flash busy flag.
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.4.5.
Control register 0 (FMC_CTL0)
Address offset: 0x10
Reset value: 0x0000 0080
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
CBCMDLEN[2:0]
Reserved
CBCMD
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0