Flash Option Control Register (Flash_Optcr) - ST STM32F410 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0401
Bits 9:8 PSIZE: Program size
Bit 7 Reserved, must be kept cleared.
Bits 6:3 SNB: Sector number
Bit 2 MER: Mass Erase
Bit 1 SER: Sector Erase
Bit 0 PG: Programming
3.8.6

Flash option control register (FLASH_OPTCR)

The FLASH_OPTCR register is used to modify the user option bytes.
Address offset: 0x14
Reset value: 0x0FFF FFED. The option bits are loaded with values from Flash memory at
reset release.
Access: no wait state when no Flash memory operation is ongoing, word, half-word and
byte access.
31
30
29
SPR
Res.
Res.
MOD
rw
15
14
13
rw
rw
rw
These bits select the program parallelism.
00 program x8
01 program x16
10 program x32
11 program x64
These bits select the sector to erase.
0000 sector 0
0001 sector 1
0010 sector 2
0011 sector 3
0100 sector 4
0101: not allowed
...
1011 not allowed
1100 user specific sector
1101 user configuration sector
1110 not allowed
1111 not allowed
Erase activated for all user sectors.
Sector Erase activated.
Flash programming activated.
28
27
26
25
Res.
Res.
Res.
Res.
12
11
10
9
RDP[7:0]
rw
rw
rw
rw
Embedded Flash memory interface
24
23
22
21
Res.
Res.
Res.
Res.
8
7
6
5
nRST_
nRST_
WDG_S
STDBY
STOP
W
rw
rw
rw
rw
RM0401 Rev 3
20
19
18
17
nWRP[4:0]
rw
rw
rw
rw
4
3
2
OPTST
Res.
BOR_LEV
RT
rw
rw
16
rw
1
0
OPTLO
CK
rs
rs
65/771
68

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F410 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF