2 *****************************************************************************
4 ** File : at32_flash_f43xM.ld
6 ** Abstract : Linker script for AT32F435/7xM Device with
7 ** 4032KByte FLASH, 384KByte RAM
9 ** Set heap size, stack size and stack location according
10 ** to application requirements.
12 ** Set memory bank area and size if external memory is used.
14 ** Target : Artery Tek AT32
16 ** Environment : Arm gcc toolchain
18 *****************************************************************************
23 FLASH : 0x0800 0000 -- 0x083E FFFF
24 MEM : 0x2000 0000 -- 0x2007 FFFF
32 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 10K
33 FLASH_CUSTOM_DEFAULTS (r) : ORIGIN = 0x08002800, LENGTH = 6K
34 FLASH_CONFIG (r) : ORIGIN = 0x08004000, LENGTH = 16K
35 FLASH1 (rx) : ORIGIN = 0x08008000, LENGTH = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 3984K: 4000K
36 FLASH_CUSTOM_DEFAULTS_EXTENDED (r): ORIGIN = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 0x083EC000 : 0x083F0000, LENGTH = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 16K : 0K
38 SYSTEM_MEMORY (rx) : ORIGIN = 0x1FFF0000, LENGTH = 16K
39 RAM1 (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
40 RAM (xrw) : ORIGIN = 0x20010000, LENGTH = 128K
41 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K /* external ram */
44 REGION_ALIAS("STACKRAM", RAM)
45 REGION_ALIAS("FASTRAM", RAM1)
46 REGION_ALIAS("VECTAB", RAM1)
49 __firmware_start = ORIGIN(FLASH1);
50 REGION_ALIAS("MOVABLE_FLASH", FLASH1)
52 INCLUDE "at32_flash_f4_split.ld"