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.

81 lines
3.9 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /****************************************************************************/
  2. /* AM437x_PRU_SS0.cmd */
  3. /* Copyright (c) 2015 Texas Instruments Incorporated */
  4. /* */
  5. /* Description: This file is a linker command file that can be used for */
  6. /* linking PRU programs built with the C compiler and */
  7. /* the resulting .out file on an AM437x device. */
  8. /****************************************************************************/
  9. -cr /* Link using C conventions */
  10. /* Specify the System Memory Map */
  11. MEMORY
  12. {
  13. PAGE 0:
  14. PRU_IMEM : org = 0x00000000 len = 0x00001000 /* 4kB PRU-ICSS0 Instruction RAM */
  15. PAGE 1:
  16. /* RAM */
  17. PRU_DMEM_0_1 : org = 0x00000000 len = 0x00000FA0 CREGISTER=14 /* 4kB PRU Data RAM 0_1 */
  18. PRU_DMEM_1_0 : org = 0x00002000 len = 0x00000FC0 CREGISTER=15 /* 4kB PRU Data RAM 1_0 */
  19. DDR : org = 0x80000000 len = 0x00000100 CREGISTER=20
  20. L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=19
  21. /* Peripherals */
  22. TUPUS1_ZONE : org = 0x00000FD0 len = 0x00000030 CREGISTER=23
  23. SYS1_IO : org = 0x00000FC0 len = 0x00000010 CREGISTER=28
  24. HW_ZONE : org = 0x00000FA0 len = 0x00000020 CREGISTER=27
  25. TUPUS0_ZONE : org = 0x00002FD0 len = 0x00000030 CREGISTER=24
  26. SYS0_IO : org = 0x00002FC0 len = 0x00000010 CREGISTER=29
  27. TUPUS2_ZONE : org = 0x00040FD0 len = 0x00000030 CREGISTER=25
  28. SYS2_IO : org = 0x00040FC0 len = 0x00000010 CREGISTER=30
  29. TUPUS3_ZONE : org = 0x00042FD0 len = 0x00000030 CREGISTER=26
  30. SYS3_IO : org = 0x00042FC0 len = 0x00000010 CREGISTER=31
  31. PRU0_CTRL : org = 0x00022000 len = 0x0000002C CREGISTER=22
  32. PRU1_CTRL : org = 0x00024000 len = 0x0000002C CREGISTER=21
  33. PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=2
  34. PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3
  35. PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=16
  36. PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0
  37. PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=4
  38. DMTIMER2 : org = 0x48040000 len = 0x0000005C CREGISTER=1
  39. PWMSS0 : org = 0x48300000 len = 0x000002C4 CREGISTER=8
  40. PWMSS1 : org = 0x48302000 len = 0x000002C4 CREGISTER=9
  41. PWMSS2 : org = 0x48304000 len = 0x000002C4 CREGISTER=10
  42. GEMAC : org = 0x4A100000 len = 0x0000128C CREGISTER=5
  43. MBX0 : org = 0x480C8000 len = 0x00000140 CREGISTER=12
  44. SPINLOCK : org = 0x480CA000 len = 0x00000880 CREGISTER=13
  45. TPCC : org = 0x49000000 len = 0x00001098 CREGISTER=18
  46. RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=6
  47. RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=7
  48. RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=11
  49. RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=17
  50. }
  51. /* Specify the sections allocation into memory */
  52. SECTIONS {
  53. /* Forces _c_int00 to the start of PRU IRAM. Not necessary when */
  54. /* loading an ELF file, but useful when loading a binary */
  55. .text:_c_int00* > 0x0, PAGE 0
  56. .text > PRU_IMEM, PAGE 0
  57. .stack > PRU_DMEM_0_1, PAGE 1
  58. .bss > PRU_DMEM_0_1, PAGE 1
  59. .cio > PRU_DMEM_0_1, PAGE 1
  60. .data > PRU_DMEM_0_1, PAGE 1
  61. .switch > PRU_DMEM_0_1, PAGE 1
  62. .sysmem > PRU_DMEM_0_1, PAGE 1
  63. .cinit > PRU_DMEM_0_1, PAGE 1
  64. .rodata > PRU_DMEM_0_1, PAGE 1
  65. .rofardata > PRU_DMEM_0_1, PAGE 1
  66. .farbss > PRU_DMEM_0_1, PAGE 1
  67. .fardata > PRU_DMEM_0_1, PAGE 1
  68. .resource_table > PRU_DMEM_0_1, PAGE 1
  69. }