![GigaDevice Semiconductor GD32F20 Series Скачать руководство пользователя страница 47](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801047.webp)
GD32F20x User Manual
47
Figure 2-1. Process of page erase operation
Set the PER bit,
Write
FMC_ADDR
Is the LK bit is 0
Send the command
to FMC by setting
START bit
Start
Yes
No
Unlock the
FMC_CTL
Is the BUSY bit is 0
Yes
No
Is the BUSY bit is 0
Yes
No
Finish
For the GD32F20x_CL with flash more than 512KB, 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
register, or only on bank1 by setting MER bit to 1 in the FMC_CTL1 register, or on entire flash
by setting MER bits to 1 in FMC_CTL0 register and FMC_CTL1 register. The following steps
show the mass erase register access sequence.
Unlock the FMC_CTLx registers if necessary.
Check the BUSY bit in FMC_STATx registers to confirm that no flash memory operation
is in progress (BUSY equals to 0). Otherwise, wait until the operation has finished.
Set MER bit in FMC_CTL0 register if erase bank0 only. Set MER bit in FMC_CTL1
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...