Embedded Flash memory interface
Table 14.
Block
15
Lock block
The OTP area is divided into 16 OTP data blocks of 32 bytes and one lock OTP block of 16
bytes. The OTP data and lock blocks cannot be erased. The lock block contains 16 bytes
LOCKBi (0 ≤ i ≤ 15) to lock the corresponding OTP data block (blocks 0 to 15). Each OTP
data block can be programmed until the value 0x00 is programmed in the corresponding
OTP lock byte. The lock bytes must only contain 0x00 and 0xFF values, otherwise the OTP
bytes might not be taken into account correctly.
3.8
Flash interface registers
3.8.1
Flash access control register (FLASH_ACR)
The Flash access control register is used to enable/disable the acceleration features and
control the Flash memory access time according to CPU frequency.
Address offset: 0x00
Reset value: 0x0000 0000
Access: no wait state, word, half-word and byte access
31
30
29
28
15
14
13
12
DCRST ICRST
Reserved
rw
Bits 31:11 Reserved, must be kept cleared.
Bit 12 DCRST: Data cache reset
Bit 11 ICRST: Instruction cache reset
Bit 10 DCEN: Data cache enable
Bit 9 ICEN: Instruction cache enable
75/1422
OTP area organization (continued)
[128:96]
OTP15
OTP15
LOCKB15 ...
LOCKB11 ...
LOCKB12
27
26
25
11
10
9
DCEN
ICEN
w
rw
rw
0: Data cache is not reset
1: Data cache is reset
This bit can be written only when the D cache is disabled.
0: Instruction cache is not reset
1: Instruction cache is reset
This bit can be written only when the I cache is disabled.
0: Data cache is disabled
1: Data cache is enabled
0: Instruction cache is disabled
1: Instruction cache is enabled
Doc ID 018909 Rev 4
[95:64]
[63:32]
OTP15
OTP15
OTP15
OTP15
LOCKB7 ...
LOCKB8
LOCKB4
24
23
22
Reserved
8
7
6
PRFTEN
Reserved
rw
[31:0]
Address byte 0
OTP15
OTP15
LOCKB3 ...
LOCKB0
21
20
19
18
5
4
3
2
rw
RM0090
0x1FFF 79E0
0x1FFF 79F0
0x1FFF 7A00
17
16
1
0
LATENCY
rw
rw
Need help?
Do you have a question about the STM32F40 Series and is the answer not in the manual?
Questions and answers