RM0440
5.3
FLASH functional description
5.3.1
Flash memory organization
The Flash memory has the following main features:
•
Capacity up to 128 Kbytes (read width of 64-bits)
•
128 KB organized in one single bank for main memory
•
Page size of 2 Kbyte
•
72 bits wide data read (64 bits plus 8 ECC bits)
•
Page and Mass erase
•
Each page is composed of 8 rows of 256 bytes
•
An Information block containing:
–
–
–
The memory organization is based on a main area and an information block as shown in
Table
28.
Flash area
Main memory
Information block
Embedded Flash memory (FLASH) for category 2 devices
System memory from which the device boots in System memory boot mode. The
area is reserved for use by STMicroelectronics and contains the boot loader that is
used to reprogram the Flash memory through one of the following interfaces:
USART, SPI, I2C, USB. It is programmed by STMicroelectronics when the device
is manufactured, and protected against spurious write/erase operations. For
further details, please refer to the AN2606 available from www.st.com.
1 Kbyte (128 double word) OTP (one-time programmable) bytes for user data. The
OTP data cannot be erased and can be written only once. If only one bit is at 0,
the entire double word cannot be written anymore, even with the value 0x0000
0000 0000 0000.
Option bytes for user configuration.
Table 28. Flash module organization (64 bits read width)
Flash memory addresses
0x0800 0000 - 0x0800 07FF
0x0800 0800 - 0x0800 0FFF
0x0800 1000 - 0x0800 17FF
0x0800 1800 - 0x0800 1FFF
0x0801 F800 - 0x0801 FFFF
0x1FFF 0000 - 0x1FFF 6FFF
0x1FFF 7000 - 0x1FFF 73FF
0x1FFF 7800 - 0x1FFF 782F
-
-
-
-
RM0440 Rev 4
Size
Name
(bytes)
2 K
Page 0
2 K
Page 1
2 K
Page 2
2 K
Page 3
-
-
-
-
-
-
-
-
2 K
Page 63
28 K
System memory
1 K
OTP area
48
Option bytes
189/2126
228
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?