![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 74](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782074.webp)
GD32A50x User Manual
74
Page erase / program protection of bank 0
The page erase / program protection of bank 0 can be individually enabled by configuring the
OB_BK0WP[31:0] bit field to 0 in the option bytes 0. If a page erase operation is executed on
the Option Byte region, all the flash memory page erase / program protection functions will
be disabled. When setting or resetting OB_BK0WP[31:0] in the option bytes 0, the software
need to set OBRLD in FMC_CTL1 register or a system reset to reload the OB_BK0WP[31:0]
bits. The
Table 2-10. OB_BK0WP bit for pages protected
shows which pages are protected
by setting OB_BK0WP[31:0].
Table 2-10. OB_BK0WP bit for pages protected
OB_BK0WP bit
pages protected
OB_BK0WP[0]
BANK0_SIZE / 32
OB_BK0WP[1]
BANK0_SIZE / 32
OB_BK0WP[2]
BANK0_SIZE / 32
.
.
.
.
.
.
OB_BK0WP[30]
BANK0_SIZE / 32
OB_BK0WP[31]
BANK0_SIZE / 32
Note:
BANK0_SIZE is the memory size of bank0.
Page erase / program protection of bank 1
The page erase / program protection of bank 1 can be individually enabled by configuring the
OB_BK1WP[7:0] bit field to 0 in the option bytes 0. Each bit of OB_BK1WP[7:0] represents
one eighth of bank 1. If a page erase operation is executed on the Option Byte region, all the
flash memory page erase / program protection functions will be disabled. When setting or
resetting OB_BK1WP[7:0] in the option bytes 0, the software need to set OBRLD in
FMC_CTL1 register or a system reset to reload the OB_BK1WP[7:0] bits. The
OB_BK1WP bit for pages protected
shows which pages are protected by setting
OB_BK1WP[7:0].
Table 2-11. OB_BK1WP bit for pages protected
OB_BK1WP bit
pages protected
OB_BK1WP[0]
BANK1_SIZE / 8
OB_BK1WP[1]
BANK1_SIZE / 8
.
.
.
.
.
.
OB_BK1WP[6]
BANK1_SIZE / 8
OB_BK1WP[7]
BANK1_SIZE / 8
Note:
1. BANK1_SIZE is the memory size of bank1.