stm32.lnk 642 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Linker script for stm32f030r8 64k-flash + 8k-ram */
  2. ENTRY(_start)
  3. MEMORY
  4. {
  5. rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K
  6. ram (rw) : ORIGIN = 0x20000000, LENGTH = 8K
  7. }
  8. _stack = ORIGIN(ram) + LENGTH(ram);
  9. _stack_bottom = _stack - 512;
  10. SECTIONS {
  11. .text : {
  12. KEEP(*(.vectors))
  13. *(.text*)
  14. *(.rodata*)
  15. *(.init)
  16. __init_array_start = .;
  17. *(.init_array)
  18. __init_array_end = .;
  19. *(.fini .fini_array)
  20. } >rom
  21. . = ALIGN(4);
  22. PROVIDE(_etext = .);
  23. .data : {
  24. _sdata = .;
  25. *(.data*) *(.jcr)
  26. _edata = .;
  27. } >ram AT >rom
  28. .bss : {
  29. __bss_start__ = .;
  30. *(.bss*)
  31. *(COMMON)
  32. __bss_end__ = .;
  33. _end = .;
  34. } >ram
  35. }