DocID025202 Rev 7
74/1080
RM0365
Embedded Flash memory
80
4.5.6 Flash
address
register (FLASH_AR)
Address offset: 0x14
Reset value: 0x0000 0000
This register is updated by hardware with the currently/last used address. For Page Erase
operations, this should be updated by software to indicate the chosen page.
Bit 7
LOCK
: Lock
Write to 1 only. When it is set, it indicates that the Flash is locked. This bit is reset
by hardware after detecting the unlock sequence.
In the event of unsuccessful unlock operation, this bit remains set until the next
reset.
Bit 6
STRT
: Start
This bit triggers an ERASE operation when set. This bit is set only by software
and reset when the BSY bit is reset.
Bit 5
OPTER
: Option byte erase
Option byte erase chosen.
Bit 4
OPTPG
: Option byte programming
Option byte programming chosen.
Bit 3 Reserved, must be kept at reset value.
Bit 2
MER
: Mass erase
Erase of all user pages chosen.
Bit 1
PER
: Page erase
Page Erase chosen.
Bit 0
PG
: Programming
Flash programming chosen.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FAR[31:16]
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FAR[15:0]
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
Bits 31:0
FAR
: Flash Address
Chooses the address to program when programming is selected, or a page to
erase when Page Erase is selected.
Note: Write access to this register is blocked when the BSY bit in the FLASH_SR
register is set.