2 *****************************************************************************
4 ** File : stm32_flash_h743.ld
6 ** Abstract : Linker script for STM32H743xI Device with
7 ** 512K AXI-RAM mapped onto AXI bus on D1 domain
8 ** 128K SRAM1 mapped on D2 domain
9 ** 128K SRAM2 mapped on D2 domain
10 ** 32K SRAM3 mapped on D2 domain
11 ** 64K SRAM4 mapped on D3 domain
15 *****************************************************************************
18 /* Stack & Heap sizes */
20 _Min_Stack_Size = 0x1800;
26 0x00000000 to 0x0000FFFF 64K ITCM
27 0x20000000 to 0x2001FFFF 128K DTCM
28 0x24000000 to 0x2407FFFF 512K AXI SRAM, D1 domain, main RAM
29 0x30000000 to 0x3001FFFF 128K SRAM1, D2 domain, unused
30 0x30020000 to 0x3003FFFF 128K SRAM2, D2 domain, unused
31 0x30040000 to 0x30047FFF 32K SRAM3, D2 domain, unused
32 0x38000000 to 0x3800FFFF 64K SRAM4, D3 domain, unused
33 0x38800000 to 0x38800FFF 4K BACKUP SRAM, Backup domain, unused
35 0x08000000 to 0x081FFFFF 2048K full flash,
36 0x08000000 to 0x0801FFFF 128K isr vector, startup code,
37 0x08020000 to 0x0803FFFF 128K config, // FLASH_Sector_1
38 0x08040000 to 0x081FFFFF 1792K firmware,
41 /* Specify the memory areas */
44 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 128K
45 FLASH_CONFIG (r) : ORIGIN = 0x08020000, LENGTH = 128K
46 FLASH1 (rx) : ORIGIN = 0x08040000, LENGTH = 1792K
48 ITCM_RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 64K
49 DTCM_RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
50 RAM (rwx) : ORIGIN = 0x24000000, LENGTH = 512K
52 D2_RAM (rwx) : ORIGIN = 0x30000000, LENGTH = 256K /* SRAM1 + SRAM2 */
54 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
57 REGION_ALIAS("STACKRAM", DTCM_RAM)
58 REGION_ALIAS("FASTRAM", DTCM_RAM)
59 REGION_ALIAS("SLOWRAM", D2_RAM)
61 INCLUDE "stm32_flash_h7_split.ld"