
AT32F413
Series Reference Manual
2022.06.27
Page 63
Rev 2.00
5
Flash memory controller (FLASH)
5.1 Flash memory introduction
Flash memory is divided into four parts: main Flash memory, external memory, information block and
Flash memory registers.
Main Flash memory is up to 256 KB.
Externa memory is up to 16 MB
Information block consists of 16 KB boot loader and the user system data area. The boot loader
uses USART1, USART2 or USB (DFU) serial interface for ISP programming.
Main Flash memory contains bank 1 only, 256 KB, and 2 K per page.
External memory size is up to16 MB, including 4096 pages, 4 K per page.
Table 5-1 Flash memory architecture(256 K)
Block
Name
Address range
Main memory
Bank 1
256 KB
Page 0
0x0800 0000 – 0x0800 07FF
Page 1
0x0800 0800 – 0x0800 0FFF
Page 2
0x0800 1000 – 0x0800 17FF
…
…
Page 127
0x0803 F800 – 0x0803 FFFF
External
memory
16MB
Page 0
0x0840 0000 – 0x0840 0FFF
Page 1
0x0840 1000 – 0x0840 1FFF
Page 2
0x0840 2000 – 0x0840 2FFF
…
…
Page 4095
0x093F F000 – 0x093F FFFF
Information block
16 KB boot loader
0x1FFF B000 – 0x1FFF EFFF
48 B user system data
0x1FFF F800 – 0x1FFF F82F
The main memory contains bank 1 (128 Kbytes), including 128 pages and 1 Kbyte per page.
External memory size can be up to 16 Mbytes, including 4096 pages, and 4 Kbytes per page.
Table 5-2 Flash memory architecture(128 K)
Block
Name
Address range
Main memory
Bank1
128KB
Page 0
0x0800 0000 – 0x0800 03FF
Page 1
0x0800 0400 – 0x0800 07FF
Page 2
0x0800 0800 – 0x0800 0BFF
…
…
Page 127
0x0801 FC00 – 0x0801 FFFF
External
memory
16MB
Page 0
0x0840 0000 – 0x0840 0FFF
Page 1
0x0840 1000 – 0x0840 1FFF
Page 2
0x0840 2000 – 0x0840 2FFF
…
…
Page 4095
0x093F F000 – 0x093F FFFF
Information block
16 KB boot loader
0x1FFF B000 – 0x1FFF EFFF
The main memory contains bank 1 (64 Kbytes), including 64 pages and 1 Kbyte per page.
External memory size can be up to 16 Mbytes, including 4096 pages, and 4 Kbytes per page.