54 lines
2.1 KiB
Batchfile
54 lines
2.1 KiB
Batchfile
/****************************************************************************/
|
|
/* C6678.cmd */
|
|
/* Copyright (c) 2011 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 an C6678 */
|
|
/* device. Use it as a guideline. You will want to */
|
|
/* change the memory layout to match your specific C6xxx */
|
|
/* target system. You may want to change the allocation */
|
|
/* scheme according to the size of your program. */
|
|
/* */
|
|
/* Usage: The map below divides the external memory in segments */
|
|
/* Use the linker option --define=COREn=1 */
|
|
/* Where n is the core number. */
|
|
/* */
|
|
/****************************************************************************/
|
|
|
|
-heap 0x400000
|
|
-stack 0x40000
|
|
//--entry_point=RST
|
|
MEMORY
|
|
{
|
|
VECTORS: o = 0x00800000 l = 0x00000400
|
|
CSL_VEC: o = 0x00800400 l = 0x00000400
|
|
L2_SRAM: o = 0x00800800 l = 0x000FFE00 /* 1MB COREn L2/SRAM */
|
|
SMC: o = 0x0C000000 l = 0x00400000
|
|
DDR: o = 0x80000000 l = 0x10000000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.vecs > VECTORS
|
|
.csl_vect > CSL_VEC
|
|
.text > DDR
|
|
.cinit > DDR
|
|
.const > DDR
|
|
.switch > DDR
|
|
.stack > DDR
|
|
GROUP
|
|
{
|
|
.neardata
|
|
.rodata
|
|
.bss
|
|
} > DDR
|
|
.far > DDR
|
|
.fardata > DDR
|
|
.cio > DDR
|
|
.sysmem > DDR
|
|
.rpmsg_mem > SMC
|
|
}
|
|
|