BAT32G1x9 user manual | Chapter 35 FLASH control
1141 / 1149
Rev.1.02
35.3 Controls registers of F LASH
The registers that control FLASH are as follows:
⚫
Flash Write Protection Register (FLPROT).
⚫
Flash operation control register (FLOPMD1, FLOPMD2).
⚫
Flash Erase Mode Control Register (FLERMD).
⚫
Flash Status Register (FLSTS).
⚫
Flash full-chip erase time control register (FLCERCNT).
⚫
Flash Page Erase Time Control Register (FLSERCNT).
⚫
Flash Write Time Control Register (FLPROCNT).
⚫
Flash mode time control register (FLNVSCNT/FLPRVCNT/FLERVCNT).
⚫
Flash Wipe And Write Protection Control Register (FLSECPR).
35.3.1
Flash Write Protection Register (FLPROT).
Flash protection registers are used to protect the FLASH operating control registers.
Address:
0x40020020
After reset:
00000000H R/W
symbol
FLPROT
WRP
The operation register (FLOPMD1/FLOPMD2) is write-protected
0
Rewriting FLOPMD1/FLOPMD2 is not permitted
1
Rewriting of FLOPMD1/FLOPMD2 is allowed
PRKEY[7:1] WRP write protection
78h
Rewriting of WRP is allowed
Except for the
above
note
Rewriting WRP is not allowed
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
-
PRKEY[7:1]
WRP