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


; MAX32600: 256KB FLASH (0x40000) + 32KB RAM (0x8000)

#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 0x40000  {    ; load region size_region
    ER_IROM1 0x00000000 0x40000  {  ; load address = execution address 
        *.o (RESET, +First)
        *(InRoot$$Sections)
        .ANY (+RO)
    }

    ; [RAM] Vector table dynamic copy: 79 vectors * 4 bytes = (0x140) - alignment
    RW_IRAM1 (0x20000000+0x140) (0x8000-0x140-Stack_Size)  {  ; RW data
        .ANY (+RW +ZI)
    }
    ARM_LIB_STACK (0x20000000+0x8000) EMPTY -Stack_Size { ; stack
    }
}