Flash Registers; Flash Access Control Register (Flash_Acr) - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
3.7

FLASH registers

3.7.1

Flash access control register (FLASH_ACR)

Address offset: 0x00
Reset value: 0x0000 0600
Access: no wait state, word, half-word and byte access
31
30
29
Res.
Res.
Res.
Res.
15
14
13
SLEEP
RUN_
Res.
DCRST ICRST
_PD
PD
rw
rw
--
Bits 31:19 Reserved, must be kept at reset value.
Bits 17:15 Reserved, must be kept at reset value.
Embedded Flash memory (FLASH) for category 3 devices
28
27
26
25
Res.
Res.
Res.
12
11
10
9
DCEN
ICEN
rw
rw
rw
rw
Bit 18 DBG_SWEN: Debug software enable
SW may use this bit to enable/disable the debugger.
0: Debugger disabled
1: Debugger enabled
Bit 14 SLEEP_PD: Flash Power-down mode during Sleep or Low-power sleep mode
This bit determines whether the flash memory is in Power-down mode or Idle
mode when the device is in Sleep or Low-power sleep mode.
0: Flash in Idle mode during Sleep and Low-power sleep modes
1: Flash in Power-down mode during Sleep and Low-power sleep modes
Caution: The flash must not be put in power-down while a program or an erase
operation is on-going.
Bit 13 RUN_PD: Flash Power-down mode during Run or Low-power run mode
This bit is write-protected with FLASH_PDKEYR.
This bit determines whether the flash memory is in Power-down mode or Idle
mode when the device is in Run or Low-power run mode. The flash memory can
be put in power-down mode only when the code is executed from RAM. The
Flash must not be accessed when RUN_PD is set.
0: Flash in Idle mode
1: Flash in Power-down mode
Caution: The flash must not be put in power-down while a program or an erase
operation is on-going.
Bit 12 DCRST: Data cache reset
0: Data cache is not reset
1: Data cache is reset
This bit can be written only when the data cache is disabled.
24
23
22
Res.
Res.
Res.
8
7
6
PRFTEN
Res.
Res.
rw
RM0440 Rev 1
21
20
19
18
DBG_
Res.
Res.
Res.
SWEN
rw
5
4
3
2
Res.
Res.
LATENCY[3:0]
rw
rw
17
16
Res.
Res.
1
0
rw
rw
125/2083
185

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF