DocID018909 Rev 11
105/1731
RM0090
Embedded Flash memory interface
112
3.9.8
Flash control register (FLASH_CR) for
STM32F42xxx and STM32F43xxx
The Flash control register is used to configure and start Flash memory operations.
Address offset: 0x10
Reset value: 0x8000 0000
Access: no wait state when no Flash memory operation is ongoing, word, half-word and
byte access.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
LOCK
Reserved
ERRIE
EOPIE
Reserved
STRT
rs
rw
rw
rs
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
MER1
Reserved
PSIZE[1:0]
SNB[4:0]
MER
SER
PG
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bit 31
LOCK:
Lock
Write to 1 only. When it is set, this bit indicates that the FLASH_CR register is locked. It is
cleared by hardware after detecting the unlock sequence.
In the event of an unsuccessful unlock operation, this bit remains set until the next reset.
Bits 30:26 Reserved, must be kept cleared.
Bit 25
ERRIE:
Error interrupt enable
This bit enables the interrupt generation when the OPERR bit in the FLASH_SR register is set
to 1.
0: Error interrupt generation disabled
1: Error interrupt generation enabled
Bit 24
EOPIE:
End of operation interrupt enable
This bit enables the interrupt generation when the EOP bit in the FLASH_SR register goes to
1.
0: Interrupt generation disabled
1: Interrupt generation enabled
Bits 23:17 Reserved, must be kept cleared.
Bit 16
STRT:
Start
This bit triggers an erase operation when set. It is set only by software and cleared when the
BSY bit is cleared.
Bit 15
MER1:
Mass Erase of bank 2 sectors
Erase activated for bank 2 user sectors 12 to 23.
Bits 14:10 Reserved, must be kept cleared.
Bits 9:8
PSIZE[1:0]:
Program size
These bits select the program parallelism.
00 program x8
01 program x16
10 program x32
11 program x64