]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/icss_emac/firmware/icss_dualemac/src/pru.cmd
icss-emac: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / icss_emac / firmware / icss_dualemac / src / pru.cmd
1 /****************************************************************************/\r
2 /*  PRU.cmd                                                                 */\r
3 /*  Copyright (c) 2017  Texas Instruments Incorporated                      */\r
4 /*  Author: Rafael de Souza                                                 */\r
5 /*                                                                          */\r
6 /*    Description: This file is a sample linker command file that can be    */\r
7 /*                 used for linking programs built with the C compiler and  */\r
8 /*                 running the resulting .out file on an PRU CORE device.   */\r
9 /*                 Use it as a guideline.  You will want to                 */\r
10 /*                 change the memory layout to match your specific          */\r
11 /*                 target system.  You may want to change the allocation    */\r
12 /*                 scheme according to the size of your program.            */\r
13 /*                                                                          */\r
14 /****************************************************************************/\r
15 \r
16 \r
17 MEMORY\r
18 {\r
19     PAGE 0:\r
20       PRUIMEM:   o = 0x00000000  l = 0x00002000  /* 8kB PRU0 Instruction RAM */\r
21     PAGE 1:\r
22       PRUDMEM:   o = 0x00000000  l = 0x00001000  /* 8kB PRU Data RAM 0 */\r
23     PAGE 2:\r
24       SHAREDMEM: o = 0x00010000  l = 0x00003000  /* 12kB Shared RAM */\r
25 }\r
26 \r
27 SECTIONS\r
28 {\r
29     .text:micro_scheduler          >  0x00\r
30     .text          >  PRUIMEM, PAGE 0\r
31     .bss           >  PRUDMEM, PAGE 1\r
32     .data          >  0x00, PAGE 1\r
33     .data          >  PRUDMEM, PAGE 1\r
34     .rodata        >  PRUDMEM, PAGE 1\r
35     .farbss        >  SHAREDMEM, PAGE 2\r
36     .fardata       >  SHAREDMEM, PAGE 2\r
37     .rofardata     >  SHAREDMEM, PAGE 2\r
38     .sysmem        >  PRUDMEM, PAGE 1\r
39     .stack         >  PRUDMEM, PAGE 1\r
40     .init_array    >  PRUDMEM, PAGE 1\r
41     .cinit         >  PRUDMEM, PAGE 1\r
42     .args          >  PRUDMEM, PAGE 1\r
43 \r
44     .resource_table > PRUDMEM, PAGE 1\r
45 }\r
46 \r
47 \r