Advertisement
Guest User

mem.ld

a guest
Apr 6th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  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.  
  14. MEMORY
  15. {
  16. FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
  17. RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
  18.  
  19. /*
  20. * Optional sections; define the origin and length to match
  21. * the the specific requirements of your hardware. The zero
  22. * length prevents inadvertent allocation.
  23. */
  24. CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0
  25. FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  26. EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  27. EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  28. EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  29. EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
  30. }
  31.  
  32. /*
  33. * For external ram use something like:
  34. * RAM (xrw) : ORIGIN = 0x64000000, LENGTH = 2048K
  35. *
  36. * For special RAM areas use something like:
  37. * MEMORY_ARRAY (xrw) : ORIGIN = 0x20002000, LENGTH = 32
  38. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement