mem.ld 647 B

12345678910111213141516171819202122232425
  1. /*
  2. * Memory Spaces Definitions.
  3. *
  4. * Need modifying for a specific board.
  5. * FLASH.ORIGIN: starting address of flash
  6. * FLASH.LENGTH: length of flash
  7. * RAM.ORIGIN: starting address of RAM bank 0
  8. * RAM.LENGTH: length of RAM bank 0
  9. *
  10. * The values below can be addressed in further linker scripts
  11. * using functions like 'ORIGIN(RAM)' or 'LENGTH(RAM)'.
  12. */
  13. MEMORY
  14. {
  15. FLASH (xrw) : ORIGIN = 0x2711F000, LENGTH = 0xCD000 /* text in flash */
  16. RAM (xrw) : ORIGIN = 0x2001D000, LENGTH = 0x43000 /* text/data/bss/heap/stack in RAM */
  17. }
  18. /*
  19. * For external ram use something like:
  20. RAM (xrw) : ORIGIN = 0x68000000, LENGTH = 64K
  21. */