2
0

linker.ld 725 B

123456789101112131415161718192021222324252627282930
  1. MEMORY
  2. {
  3. FLASH (wx) : ORIGIN = 0x00000000, LENGTH = 256K
  4. RAM (wx) : ORIGIN = 0x20000000, LENGTH = 64K
  5. }
  6. SECTIONS
  7. {
  8. __vectors_start__ = .;
  9. .vectors : { *(.vectors) } > FLASH
  10. __vectors_end__ = __vectors_start__ + 0x400;
  11. .sys : { *(.sys*) } > FLASH
  12. .text : { *(.text*) } > FLASH
  13. .rodata : { *(.text*) } > FLASH
  14. __data_load_start__ = .;
  15. __data_start__ = .;
  16. .data : { *(.data*) } > RAM
  17. __data_end__ = __data_start__ + SIZEOF(.data);
  18. __bss_start__ = .;
  19. .bss : { *(.bss*) } > RAM
  20. __bss_end__ = __bss_start__ + SIZEOF(.bss);
  21. __heap_start__ = .;
  22. .heap : { *(.heap*) } > RAM
  23. __heap_end__ = __heap_start__ + SIZEOF(.heap);
  24. end = .;
  25. }