RM0351
76/1693 DocID024597 Rev 3
Note: When booting from bank 2, in the application initialization code, you have to relocate the
vector table to bank 2 base address. (0x0808 0000) using the NVIC exception table and
offset register.
Physical remap
Once the boot pins are selected, the application software can modify the memory
accessible in the code area (in this way the code can be executed through the ICode bus in
place of the System bus). This modification is performed by programming the SYSCFG
memory remap register (SYSCFG_MEMRMP) in the SYSCFG controller.
The following memories can thus be remapped:
• Main Flash memory
• System memory
• Embedded SRAM1 (96 KB)
• FSMC bank 1 (NOR/PSRAM 1 and 2)
• Quad SPI memory
•
Table 4. Memory mapping versus boot mode/physical remap
Addresses
Boot/remap in
main Flash
memory
Boot/remap in
embedded
SRAM 1
Boot/remap in
system
memory
Remap in
FSMC
Remap in
QUADSPI
0x2000 0000 - 0x2001 7FFF SRAM1 SRAM1 SRAM1 SRAM1 SRAM1
0x1FFF 0000 - 0x1FFF FFFF
System
memory/OTP/
Options bytes
System
memory/OTP/
Options bytes
System
memory/OTP/
Options bytes
System
memory/OTP/
Options bytes
System
memory/OTP/
Options bytes
0x1000 8000 - 0x1FFE FFFF Reserved Reserved Reserved Reserved Reserved
0x1000 0000 - 0x1000 7FFF SRAM2 SRAM2 SRAM2 SRAM2 SRAM2
0x0810 0000 - 0x0FFF FFFF Reserved Reserved Reserved Reserved Reserved
0x0800 0000 - 0x080F FFFF Flash memory Flash memory Flash memory Flash memory Flash memory
0x0400 0000 - 0x07FF FFFF Reserved Reserved Reserved
FSMC bank 1
NOR/
PSRAM 2
(128 MB)
Aliased
QUADSPI
bank (128 MB)
Aliased
0x0000 0010 - 0x03FF FFFF Reserved Reserved Reserved
FSMC bank 1
NOR/
PSRAM 1
(128 MB)
Aliased
QUADSPI
bank (128 MB)
Aliased
0x0000 0000 - 0x000F FFFF
(1)
(2)
Flash (1 MB)
Aliased
SRAM1
(96 KB)
Aliased
System
memory
(28 KB)
Aliased
FSMC bank 1
NOR/
PSRAM 1
(128 MB)
Aliased)
QUADSPI
bank (128 MB)
Aliased)