perf_counter/example/example.sct

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-11-14 02:51:45 +00:00
#! armclang --target=arm-arm-none-eabi -mcpu=cortex-m0 -E -xc
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
#define RAM1_SIZE 0x00020000
#define RAM1_BASE 0x20000000
#define RAM1_LIMIT (RAM1_BASE + RAM1_SIZE)
2023-03-03 00:19:26 +00:00
#define STACK_SIZE 0x1000
2022-11-25 22:53:50 +00:00
#define HEAP_ALIGN 8
2023-03-19 23:08:08 +00:00
#define HEAP_SIZE (RAM1_LIMIT - AlignExpr(ImageLimit(ZI_RAM_UNINIT), HEAP_ALIGN))
2022-11-14 02:51:45 +00:00
2022-11-28 00:27:15 +00:00
2022-11-14 02:51:45 +00:00
LR_IROM1 0x00000000 0x00040000 { ; load region size_region
2022-11-28 00:27:15 +00:00
ER_IROM1 0x00000000 0x00040000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
.ANY (+XO)
}
ARM_LIB_STACK RAM1_BASE ALIGN 8 EMPTY FILL 0xDEADBEEF STACK_SIZE {}
RW_IRAM1 +0 { ; RW data
.ANY (+RW +ZI)
}
2023-03-19 23:08:08 +00:00
ZI_RAM_UNINIT +0 UNINIT {
.ANY (.bss.noinit)
}
2022-11-28 00:27:15 +00:00
ARM_LIB_HEAP +0 ALIGN HEAP_ALIGN EMPTY HEAP_SIZE {}
ScatterAssert(ImageLimit(ARM_LIB_HEAP) <= RAM1_LIMIT)
2022-11-14 02:51:45 +00:00
}
2022-11-28 00:27:15 +00:00