Advertisement
Guest User

am335x.cmd

a guest
May 19th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. /* vim: ft=ld
  2. */
  3. --ram_model
  4. --stack_size 0x100
  5. --heap_size 0x100
  6.  
  7. /* diagnostic output */
  8. -abs
  9.  
  10. /* link-time optimization */
  11. /* --make_static */
  12.  
  13.  
  14.  
  15. MEMORY
  16. {
  17. PAGE 0: /* instruction address space */
  18. IRAM ( IX) : org = 0x00000000, len = 0x2000 /* 8K iram */
  19.  
  20. PAGE 1: /* data address space */
  21. LNEAR (RWI ) : org = 0x00000000, len = 0x0100, cregister = 24 /* first bit of local ram */
  22. LOCAL (RWI ) : org = 0x00000100, len = 0x1f00 /* 8K data ram for this core */
  23. SHARED (RWI ) : org = 0x00010000, len = 0x3000, cregister = 28 /* 12K shared data ram */
  24.  
  25. PAGE 2: /* uninitializable space */
  26. PEER (RW ) : org = 0x00002000, len = 0x2000, cregister = 25 /* 8K data ram for other core */
  27.  
  28. PRU_CFG (RW ) : org = 0x00026000, len = 0x1000, cregister = 4
  29. PRU_ECAP(RW ) : org = 0x00030000, len = 0x1000, cregister = 3
  30. PRU_IEP (RW ) : org = 0x0002e000, len = 0x1000, cregister = 26
  31. PRU_INTC(RW ) : org = 0x00020000, len = 0x1000, cregister = 0
  32. PRU_UART(RW ) : org = 0x00028000, len = 0x1000, cregister = 7
  33. }
  34.  
  35. SECTIONS
  36. {
  37. .text : {} > IRAM, PAGE 0
  38.  
  39. .init_array : {} > LOCAL, PAGE 1 /* constructors */
  40. .cinit : {} > LOCAL, PAGE 1 /* init tables used by --rom_model */
  41.  
  42. .rodata : {} > LOCAL, PAGE 1
  43. .data : {} > LOCAL, PAGE 1
  44. .bss : {} > LOCAL, PAGE 1
  45.  
  46. .rofardata : {} > SHARED, PAGE 1
  47. .fardata : {} > SHARED, PAGE 1
  48. .farbss : {} > SHARED, PAGE 1
  49.  
  50. .sysmem : {} > LOCAL, PAGE 1 /* heap */
  51. .stack : {} > LOCAL, PAGE 1
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement