EasyManuals Logo

ST STM32G0 1 Series User Manual

ST STM32G0 1 Series
1390 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #104 background imageLoading...
Page #104 background image
Embedded Flash memory (FLASH) RM0444
104/1390 RM0444 Rev 5
3.7.5 FLASH control register (FLASH_CR)
Address offset: 0x014
Reset value: 0xC000 0000
Access: no wait state when no Flash memory operation is on going, word, half-word and
byte access
This register cannot be modified when CFGBSY in FLASH status register (FLASH_SR) is
set.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
LOCK
OPT
LOCK
SEC_
PROT2
SEC_
PROT
OBL_
LAUNCH
RD
ERRIE
ERRIE EOPIE Res. Res. Res. Res. Res. FSTPG
OPT
STRT
STRT
rs rs rw rw rc_w1 rw rw rw rw rs rs
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MER2 Res. BKER PNB[9:0] MER1 PER PG
rw rw rw rw rw rw rw rw rw rw rw rw 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 29 SEC_PROT2: Securable memory area protection enable, Bank 2
This bit enables the protection on securable area in Bank 2, provided that a non-null
securable memory area size (SEC_SIZE2[7:0]) is defined in option bytes.
0: Disable (securable area accessible)
1: Enable (securable area not accessible)
This bit is possible to set only by software and to clear only through a system reset.
Bit 28 SEC_PROT: Securable memory area protection enable (Bank 1)
This bit enables the protection on securable area (in Bank 1 for dual-bank devices), provided
that a non-null securable memory area size (SEC_SIZE[7:0]) is defined in option bytes.
0: Disable (securable area accessible)
1: Enable (securable area not accessible)
This bit is possible to set only by software and to clear only through a system reset.
Bit 27 OBL_LAUNCH: Option byte load launch
When set, this bit triggers the load of option bytes into option registers. It is automatically
cleared upon the completion of the load. The high state of the bit indicates pending option
byte load.
The bit cannot be cleared by software. It cannot be written as long as OPTLOCK is set.
Bit 26 RDERRIE: PCROP read error interrupt enable
This bit enables the interrupt generation upon setting the RDERR flag in the FLASH_SR
register.
0: Disable
1: Enable

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32G0 1 Series and is the answer not in the manual?

ST STM32G0 1 Series Specifications

General IconGeneral
BrandST
ModelSTM32G0 1 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals