stm32f100c6_sec.ld 942 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. Linker script for STM32F10x
  3. Copyright RAISONANCE 2007 (modified by Lanchon 1-Feb-2008)
  4. You can use, copy and distribute this file freely, but without any waranty.
  5. Configure memory sizes, end of stack and boot mode for your project here.
  6. */
  7. /* include the common STM32F10x sub-script */
  8. INCLUDE "STM32_COMMON.ld"
  9. /* Memory Spaces Definitions */
  10. MEMORY
  11. {
  12. RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K /* also change _estack below */
  13. FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 30K
  14. FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  15. EXTMEMB0 (rx) : ORIGIN = 0x8007800, LENGTH = 2K
  16. EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  17. EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  18. EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  19. }
  20. /* highest address of the user mode stack */
  21. _estack = 0x20001000;
  22. /* include the section management sub-script */
  23. /* (either "STM32_SEC_FLASH.ld" or "STM32_SEC_RAM.ld") */
  24. INCLUDE "STM32_SEC_FLASH.ld"