GD32VF103 User Manual
39
Address
Name
Description
0: boot from bank1 or bank0 if bank1 is void, when
configured boot from main memory
1: boot from bank0, when configured boot from main
memory
[2]: nRST_STDBY
0: generate a reset instead of entering standby mode
1: no reset when entering standby mode
[1]: nRST_DPSLP
0: generate a reset instead of entering Deep-sleep mode
1: no reset when entering Deep-sleep mode
[0]: nWDG_HW
0: hardware free watchdog
1: software free watchdog
0x1fff f803
USER_N
USER complement value
0x1fff f804
DATA[7:0]
user defined data bit 7 to 0
0x1fff f805
DATA_N[7:0]
DATA complement value bit 7 to 0
0x1fff f806
DATA[15:8]
user defined data bit 15 to 8
0x1fff f807
DATA_N[15:8]
DATA complement value bit 15 to 8
0x1fff f808
WP[7:0]
Page Erase/Program Protection bit 7 to 0
0: protection active
1: unprotected
0x1fff f809
WP_N[7:0]
WP complement value bit 7 to 0
0x1fff f80a
WP[15:8]
Page Erase/Program Protection bit 15 to 8
0x1fff f80b
WP_N[15:8]
WP complement value bit 15 to 8
0x1fff f80c
WP[23:16]
Page Erase/Program Protection bit 23 to 16
0x1fff f80d
WP_N[23:16]
WP complement value bit 23 to 16
0x1fff f80e
WP[31:24]
Page Erase/Program Protection bit 31 to 24
WP[30:24]: Each bit is related to 4KB flash protection, that
means 4 pages for GD32VF103. Bit 0 configures the first
4KB flash protection, and so on.
0x1fff f80f
WP_N[31:24]
WP complement value bit 31 to 24
2.3.10.
Page erase/program protection
The FMC provides page erase/program protection functions to prevent inadvertent operations
on the Flash memory. The page erase or program will not be accepted by the FMC on
protected pages. If the page erase or program command is sent to the FMC on a protected
page, the WPERR bit in the FMC_STAT registers will then be set by the FMC. If the WPERR
bit is set and the ERRIE bit is also set to 1 to enable the corresponding interrupt, then the
Flash operation error interrupt will be triggered by the FMC to draw the attention of the CPU.
The page protection function can be individually enabled by configuring the WP [31:0] bit field
to 0 in the option bytes. If a page erase operation is executed on the option bytes block, all