Newer
Older
mbed-os / targets / TARGET_Maxim / TARGET_MAX32625 / device / TOOLCHAIN_ARM_STD / TARGET_MAX32625_NO_BOOT / MAX32625.sct
@Jaeden Amero Jaeden Amero on 10 Sep 2020 721 bytes Use boot stack size from config system
#! armcc -E
; MAX32625
; 512KB FLASH (0x80000) @ 0x000000000
; 160KB RAM (0x28000) @ 0x20000000

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

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