Download Print this page

ST STM32L4+ Series Reference Manual page 155

Hide thumbs Also See for STM32L4+ Series:

Advertisement

RM0432
3.7.6
Flash control register (FLASH_CR)
Address offset: 0x14
Reset value: 0xC000 0000
Access: no wait state when no Flash memory operation is on going, word, half-word and
byte access
31
30
29
28
OPT
LOCK
Res.
Res.
LOCK
rs
rs
15
14
13
12
MER2
Res.
Res.
Res.
rw
Bits 29:28 Reserved, must be kept at reset value.
27
26
25
OBL_
RD
ERR
LAUNCH
ERRIE
IE
rc_w1
rw
rw
11
10
9
BKER
rw
rw
rw
Bit 31 LOCK: FLASH_CR Lock
This bit is set only. When set, the FLASH_CR register is locked. It is cleared by
hardware after detecting the unlock sequence.
In case of an unsuccessful unlock operation, this bit remains set until the next
system reset.
Bit 30 OPTLOCK: Options Lock
This bit is set only. When set, all bits concerning user option in FLASH_CR
register and so option page are locked. This bit is cleared by hardware after
detecting the unlock sequence. The LOCK bit must be cleared before doing the
unlock sequence for OPTLOCK bit.
In case of an unsuccessful unlock operation, this bit remains set until the next
reset.
Bit 27 OBL_LAUNCH: Force the option byte loading
When set to 1, this bit forces the option byte reloading. This bit is cleared only
when the option byte loading is complete. It cannot be written if OPTLOCK is set.
0: Option byte loading complete
1: Option byte loading requested
Bit 26 RDERRIE: PCROP read error interrupt enable
This bit enables the interrupt generation when the RDERR bit in the FLASH_SR
is set to 1.
0: PCROP read error interrupt disabled
1: PCROP read error interrupt enabled
Bit 25 ERRIE: Error interrupt enable
This bit enables the interrupt generation when the OPERR bit in the FLASH_SR
is set to 1.
0: OPERR error interrupt disabled
1: OPERR error interrupt enabled
Bit 24 EOPIE: End of operation interrupt enable
This bit enables the interrupt generation when the EOP bit in the FLASH_SR is
set to 1.
0: EOP Interrupt disabled
1: EOP Interrupt enabled
24
23
22
EOP
Res.
Res.
IE
rw
8
7
6
PNB[7:0]
rw
rw
rw
RM0432 Rev 6
Embedded Flash memory (FLASH)
21
20
19
18
Res.
Res.
Res.
FSTPG
rw
5
4
3
2
MER1
rw
rw
rw
rw
17
16
OPT
STRT
STRT
rs
rs
1
0
PER
PG
rw
rw
155/2301
168

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?

Subscribe to Our Youtube Channel