]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/RM48L952FlashLnk.cmd
Ensure that RPP startup code is always used
[pes-rpp/rpp-lib.git] / rpp / RM48L952FlashLnk.cmd
1 /*----------------------------------------------------------------------------*/
2 /* RM48L952FlashLnk.cmd                                                       */
3 /* <ccsroot>/ccs_base/arm/include/RM48L952FlashLnk.cmd                        */
4 /*                                                                            */
5 /* (c) Texas Instruments 2011, All rights reserved.                           */
6 /*                                                                            */
7
8 /*
9  *  Alternative memory map found in generated HalCoGen file:
10  *
11  *   STACKS  (RW) : origin=0x08000000 length=0x00001500
12  *   RAM     (RW) : origin=0x08001500 length=0x00026B00
13  */
14
15
16 /*----------------------------------------------------------------------------*/
17 /* Linker Settings                                                            */
18 --retain="*(.intvecs)"
19
20 --retain="rpp-lib.lib<sys_intvecs.obj>(.intvecs)" /* irq vectors must always be there */
21
22 /* Ensure that our startup code is used instead of the one from
23  * rtsv7R4_T_be_v3D16_eabi.lib. */
24 --retain="rpp-lib.lib<sys_startup.obj>(.text)"
25
26 /*----------------------------------------------------------------------------*/
27 /* Memory Map                                                                 */
28 MEMORY{
29     VECTORS (X)  : origin=0x00000000 length=0x00000040
30     FLASH0  (RX) : origin=0x00000040 length=0x0017FFC0
31     FLASH1  (RX) : origin=0x00180000 length=0x00180000
32     STACKS  (RW) : origin=0x08000000 length=0x00001500
33     RAM     (RW) : origin=0x08001500 length=0x0003EB00
34 }
35
36 /*----------------------------------------------------------------------------*/
37 /* Section Configuration                                                      */
38 SECTIONS{
39     .intvecs : {} > VECTORS
40     .text    : {} > FLASH0 | FLASH1
41     .const   : {} > FLASH0 | FLASH1
42     .cinit   : {} > FLASH0 | FLASH1
43     .pinit   : {} > FLASH0 | FLASH1
44     .bss     : {} > RAM
45     .data    : {} > RAM
46     .stack   : {} > STACKS
47     .sysmem  : {} > RAM
48 }
49 /*----------------------------------------------------------------------------*/