Newer
Older
mbed-os / targets / TARGET_Maxim / TARGET_MAX32620 / device / TOOLCHAIN_ARM_STD / MAX32620.sct
@Jaeden Amero Jaeden Amero on 10 Sep 2020 809 bytes Use boot stack size from config system
#! armcc -E
; MAX32620
; 2MB FLASH (0x200000) @ 0x000000000
; 256KB RAM (0x40000) @ 0x20000000



; MAX32620: 2MB FLASH (0x200000) + 256KB RAM (0x40000)

#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
  #define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
#endif

#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

LR_IROM1 0x00000000 0x200000  {    ; load region size_region
    ER_IROM1 0x00000000 0x200000  {  ; load address = execution address 
        *.o (RESET, +First)
        *(InRoot$$Sections)
        .ANY (+RO)
    }

    ; [RAM] Vector table dynamic copy: 65 vectors * 4 bytes = 260 (0x104) + 4
    ; for 8 byte alignment
    RW_IRAM1 (0x20000000+0x108) (0x40000-0x108-Stack_Size)  {  ; RW data
        .ANY (+RW +ZI)
    }
    ARM_LIB_STACK (0x20000000+0x40000) EMPTY -Stack_Size { ; stack
    }
}