My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32f103zd.ld 854B

123456789101112131415161718192021222324252627
  1. /*
  2. * libmaple linker script
  3. *
  4. * This build puts .text (and .rodata) in Flash, and
  5. * .data/.bss/heap (of course) in SRAM, but links starting at the
  6. * Flash and SRAM starting addresses (0x08000000 and 0x20000000
  7. * respectively). This will wipe out a Maple bootloader if there's one
  8. * on the board, so only use this if you know what you're doing.
  9. *
  10. * This build is perfectly usable for upload over SWD,
  11. * the system memory bootloader, etc. The name is just a historical
  12. * artifact.
  13. */
  14. MEMORY
  15. {
  16. ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
  17. rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K
  18. }
  19. /* Provide memory region aliases for common.inc */
  20. REGION_ALIAS("REGION_TEXT", rom);
  21. REGION_ALIAS("REGION_DATA", ram);
  22. REGION_ALIAS("REGION_BSS", ram);
  23. REGION_ALIAS("REGION_RODATA", rom);
  24. /* Let common.inc handle the real work. */
  25. INCLUDE common.inc