![GigaDevice Semiconductor GD32F10 Series User Manual Download Page 47](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800047.webp)
GD32F10x User Manual
47
will not provide any notification when this exception occurs, additionally, the page erase
operation will be ignored on erase/program protected pages. In this condition, a flash
operation error interrupt will be triggered by the FMC if the ERRIE bit in the FMC_CTLx
registers is set. The software can check the WPERR bit in the FMC_STATx registers to detect
this condition in the interrupt handler. The
Figure 2-1. Process of page erase operation
shows the page erase operation flow.
Figure 2-1. Process of page erase operation
Set the PER bit,
Write
FMC_ADDRx
Is the LK bit is 0
Send the command
to FMC by setting
START bit
Start
Yes
No
Unlock the
FMC_CTLx
Is the BUSY bit is 0
Yes
No
Is the BUSY bit is 0
Yes
No
Finish
For the GD32F10x_CL and GD32F10x_XD, FMC_STAT0 reflects the operation status of
bank0, and FMC_ STAT1 reflects the operation status of bank1. The page erase procedure
applied to bank1 is similar to the procedure applied to bank0. Especially, when erasing page
in bank1 under security protection, the address should not only be written to FMC_ADRR1
but also to FMC_ADDR0.
2.3.5.
Mass erase
The FMC provides a complete erase function which is used to initialize the main flash block
contents. This erase can affect only on bank0 by setting MER bit to 1 in the FMC_CTL0
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...