stm32f091xc.ld 848 B

1234567891011121314151617181920212223242526
  1. /*
  2. GNU linker script for STM32F091xC
  3. */
  4. /* Specify the memory areas */
  5. MEMORY
  6. {
  7. FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256K
  8. FLASH_TEXT (rx) : ORIGIN = 0x08000000, LENGTH = 256K
  9. RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
  10. }
  11. /* produce a link error if there is not this amount of RAM for these sections */
  12. _minimum_stack_size = 2K;
  13. _minimum_heap_size = 16K;
  14. /* Define tho top end of the stack. The stack is full descending so begins just
  15. above last byte of RAM. Note that EABI requires the stack to be 8-byte
  16. aligned for a call. */
  17. _estack = ORIGIN(RAM) + LENGTH(RAM);
  18. /* RAM extents for the garbage collector */
  19. _ram_start = ORIGIN(RAM);
  20. _ram_end = ORIGIN(RAM) + LENGTH(RAM);
  21. _heap_start = _ebss; /* heap starts just after statically allocated memory */
  22. _heap_end = 0x20006800; /* room for a 6k stack */