example.sct 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #! armclang --target=arm-arm-none-eabi -mcpu=cortex-m0 -E -xc
  2. ; *************************************************************
  3. ; *** Scatter-Loading Description File generated by uVision ***
  4. ; *************************************************************
  5. #define RAM1_SIZE 0x00020000
  6. #define RAM1_BASE 0x20000000
  7. #define RAM1_LIMIT (RAM1_BASE + RAM1_SIZE)
  8. #define STACK_SIZE 0x1000
  9. #define HEAP_ALIGN 8
  10. #define HEAP_SIZE (RAM1_LIMIT - AlignExpr(ImageLimit(ZI_RAM_UNINIT), HEAP_ALIGN))
  11. LR_IROM1 0x00000000 0x00040000 { ; load region size_region
  12. ER_IROM1 0x00000000 0x00040000 { ; load address = execution address
  13. *.o (RESET, +First)
  14. *(InRoot$$Sections)
  15. .ANY (+RO)
  16. .ANY (+XO)
  17. }
  18. ARM_LIB_STACK RAM1_BASE ALIGN 8 EMPTY FILL 0xDEADBEEF STACK_SIZE {}
  19. RW_IRAM1 +0 { ; RW data
  20. .ANY (+RW +ZI)
  21. }
  22. ZI_RAM_UNINIT +0 UNINIT {
  23. .ANY (.bss.noinit)
  24. }
  25. ARM_LIB_HEAP +0 ALIGN HEAP_ALIGN EMPTY HEAP_SIZE {}
  26. ScatterAssert(ImageLimit(ARM_LIB_HEAP) <= RAM1_LIMIT)
  27. }