GD32F10x User Manual
50
notable that the word/half word programming operation checks the address if it has been
erased. If the address has not been erased, PGERR bit in the FMC_STATx registers will be
set when programming the address except 0x0. It is notable that the PG bit must be set before
the word/half word programming operation. Additionally, the program operation will be ignored
on erase/program protected pages and WPERR bit in FMC_STATx is set. In these conditions,
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 PGERR bit or WPERR bit in the FMC_STATx
registers to detect which condition occurred in the interrupt handler. The
displays the word programming operation flow.
Figure 2-3. Process of word program operation
Set the PG bit
Is the LK bit is 0
Perform word/half
word write by DBUS
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, the program procedure applied to bank1 is
similar to the procedure applied to bank0.
Note:
Reading the flash should be avoided when a program/erase operation is ongoing in the
same bank. Accessing flash memory would be failed if the CPU enters the power saving
modes.
2.3.7.
Option bytes Erase
The FMC provides an erase function which is used to initialize the option bytes block in flash.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...