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.
 
 
 
 
 
 

84 lines
3.5 KiB

/****************************************************************************/
/* AM437x_PRU_SS1.cmd */
/* Copyright (c) 2015 Texas Instruments Incorporated */
/* */
/* Description: This file is a linker command file that can be used for */
/* linking PRU programs built with the C compiler and */
/* the resulting .out file on an AM437x device. */
/****************************************************************************/
-cr /* Link using C conventions */
/* Specify the System Memory Map */
MEMORY
{
PAGE 0:
PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */
PAGE 1:
/* RAM */
PRU_DMEM_0_1 : org = 0x00000000 len = 0x00000FC0 CREGISTER=20 /* 8kB PRU Data RAM 0_1 */
PRU_DMEM_1_0 : org = 0x00002000 len = 0x00000FC0 CREGISTER=21 /* 8kB PRU Data RAM 1_0 */
TUPUS2_ZONE : org = 0x00000FD0 len = 0x00000030 CREGISTER=12
SYS2_IO : org = 0x00000FC0 len = 0x00000010 CREGISTER=13
TUPUS3_ZONE : org = 0x00002FD0 len = 0x00000030 CREGISTER=14
SYS3_IO : org = 0x00002FC0 len = 0x00000010 CREGISTER=15
TUPUS0_ZONE : org = 0x00040FD0 len = 0x00000030 CREGISTER=16
SYS0_IO : org = 0x00040FC0 len = 0x00000010 CREGISTER=17
TUPUS1_ZONE : org = 0x00042FD0 len = 0x00000030 CREGISTER=18
SYS1_IO : org = 0x00042FC0 len = 0x00000010 CREGISTER=19
PAGE 2:
PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=22 /* 32kB Shared RAM */
DDR : org = 0x80000000 len = 0x00000100 CREGISTER=24
L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=23
/* Peripherals */
PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=2
PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=8
PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0
DMTIMER2 : org = 0x48040000 len = 0x0000005C CREGISTER=1
GEMAC : org = 0x4A100000 len = 0x0000128C CREGISTER=3
MBX0 : org = 0x480C8000 len = 0x00000140 CREGISTER=9
SPINLOCK : org = 0x480CA000 len = 0x00000880 CREGISTER=10
TPCC : org = 0x49000000 len = 0x00001098 CREGISTER=11
RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=4
RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=5
RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=6
RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=7
}
/* Specify the sections allocation into memory */
SECTIONS {
/* Forces _c_int00 to the start of PRU IRAM. Not necessary when */
/* loading an ELF file, but useful when loading a binary */
.text:_c_int00* > 0x0, PAGE 0
.text > PRU_IMEM, PAGE 0
.stack > PRU_DMEM_0_1, PAGE 1
.bss > PRU_DMEM_0_1, PAGE 1
.cio > PRU_DMEM_0_1, PAGE 1
.data > PRU_DMEM_0_1, PAGE 1
.switch > PRU_DMEM_0_1, PAGE 1
.sysmem > PRU_DMEM_0_1, PAGE 1
.cinit > PRU_DMEM_0_1, PAGE 1
.rodata > PRU_DMEM_0_1, PAGE 1
.rofardata > PRU_DMEM_0_1, PAGE 1
.farbss > PRU_DMEM_0_1, PAGE 1
.fardata > PRU_DMEM_0_1, PAGE 1
.resource_table > PRU_DMEM_0_1, PAGE 1
}