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
30 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 10K
31 FLASH_CDEF (r) : ORIGIN = 0x08002800, LENGTH = 6K
32 FLASH_CONFIG (r) : ORIGIN = 0x08004000, LENGTH = 16K
33 FLASH1 (rx) : ORIGIN = 0x08008000, LENGTH = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 3984K: 4000K
34 FLASH_CDEF_EXT (r) : ORIGIN = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 0x083EC000 : 0x083F0000, LENGTH = DEFINED(USE_CUSTOM_DEFAULTS_EXTENDED) ? 16K : 0K
36 SYSTEM_MEMORY (rx) : ORIGIN = 0x1FFF0000, LENGTH = 16K
37 RAM1 (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
38 RAM (xrw) : ORIGIN = 0x20010000, LENGTH = 128K
39 MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K /* external ram */
42 REGION_ALIAS("STACKRAM", RAM)
43 REGION_ALIAS("FASTRAM", RAM1)
44 REGION_ALIAS("VECTAB", RAM1)
46 REGION_ALIAS("MOVABLE_FLASH", FLASH1)
48 INCLUDE "at32_flash_f4_split.ld"