GD32A50x User Manual
77
Table 2-15. PGSERR conditions
Mode
Condition
Operation
program / fast
program
PG and FSTPG are cleared
Write data
fast program
1. not write by address order
2. not write from 0 or not write full 32 double-word
3. PRAMRDY is not set
Set START
program
CBCMD / FSTPG / OB0ER / OB0PG / MERDF / MER
/ PER
are not cleared
Set PG
fast program
CBCMD / PG / OB0ER / OB0PG / MERDF / MER /
PER
are not cleared
Set FSTPG
option bytes 1
modify
CBCMD / FSTPG / OB0ER / OB0PG / MERDF / MER
/ PER / PG
are not cleared
Set OB1START
option bytes 1
modify
not valid EPSIZE / EFALC
Set OB1START
option byte 0 erase
CBCMD / FSTPG / OB0PG / MERDF / MER / PER /
PG
are not cleared
Set OB0ER
option byte 0
program
CBCMD / FSTPG / OB0ER /MERDF / MER / PER /
PG
are not cleared
Set OB0PG
mass erase
CBCMD / OB0ER / OB0PG / MERDF / PER / PG
are not cleared
Set MER
data flash mass
erase
CBCMD / FSTPG / OB0ER / OB0PG / MER / PER /
PG
are not cleared
No Data Flash
Set MERDF
page erase
CBCMD / FSTPG / OB0ER / OB0PG / MERDF / MER
/ PG
are not cleared
FMC_ADDRx is not valid address
Set PER
check blank
FMC_ADDRx and CBCMDLEN configure error:
1. exceed 1KB boundary
2. not valid address
Set CBCMD
access EEPROM
ERAMRDY is not set
read or write to
EEPROM by bus
check blank
FSTPG / OBER / OBPG / MERDF / MER / PER / PG
are not cleared
Set CBCMD
PGAERR bit in FMC_CTLx register will be set if one of the conditions occurs in