/****************************************************************************/ /* C5535.cmd */ /* Copyright (c) 2012 Texas Instruments Incorporated */ /* Author: Rafael de Souza */ /* */ /* Description: This file is a sample linker command file that can be */ /* used for linking programs built with the C compiler and */ /* running the resulting .out file on a C5535. */ /* Use it as a guideline. You will want to */ /* change the memory layout to match your specific */ /* target system. You may want to change the allocation */ /* scheme according to the size of your program. */ /* */ /****************************************************************************/ MEMORY { MMR: o = 0x000000 l = 0x0000c0 /* 192B Memory Mapped Registers */ DARAM0: o = 0x0000C0 l = 0x00FF40 /* 64KB - MMRS */ SARAM0: o = 0x010000 l = 0x010000 /* 64KB Single Access RAM 0 */ SARAM1: o = 0x020000 l = 0x020000 /* 128kB Single Access RAM 1 */ SARAM2: o = 0x040000 l = 0x010000 /* 64kB Single Access RAM 2 */ ROM: o = 0xFE0000 l = 0x01FF00 /* 128kB ROM (MPNMC=0) or CS5 (MPNMC=1) */ VECS: o = 0xFFFF00 l = 0x000100 /* reset vector */ } SECTIONS { vectors (NOLOAD) > VECS /* If MPNMC = 1, remove the NOLOAD directive */ .cinit > SARAM2 .text > SARAM1 | SARAM2 | SARAM0 .stack > DARAM0 .sysstack > DARAM0 .sysmem > DARAM0 | SARAM0 | SARAM1 .data > DARAM0 | SARAM0 | SARAM1 .cio > SARAM2 .bss > DARAM0 | SARAM0 | SARAM1 .const > DARAM0 | SARAM0 | SARAM1 .switch > DARAM0 | SARAM0 | SARAM1 }