![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 45](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794045.webp)
GD32E23x User Manual
45
Write the page erase command into PER bit in FMC_CTL register.
Send the page erase command to the FMC by setting the START bit in FMC_CTL
register.
Wait until all the operations have been completed by checking the value of the BUSY bit
in FMC_STAT register.
Read and verify the page if required using a DBUS access.
When the operation is executed successfully, an interrupt will be triggered by FMC if the
ENDIE bit in the FMC_CTL register is set, and the ENDF in FMC_STAT register is set. Note
that a correct target page address must be confirmed. Or the software may run out of control
if the target erase page is being used for fetching codes or accessing data. The FMC will not
provide any notification when this occurs. Additionally, the page erase operation will be
ignored on protected pages. A Flash Operation Error interrupt will be triggered by the FMC if
the ERRIE bit in the FMC_CTL register is set. The software can check the PGERR bit in the
FMC_STAT register to detect this condition in the interrupt handler. The end of this operation