App.cmd is an example linker command file.
Refer to Memory Requirements for further details
The \BoardSupport\lnk\memorymap.cmd file defines all available memory areas:
MEMORY
{
IVT : org = 0x00000000, len = 0x200
STARTUP : org = 0x00000200, len = 0x200
DM2BIOS : org = 0x80000000, len = 0x00004000
IRAM : org = 0x00000400, len = 0x3FC00
SDRAM : org = 0x80004000, len = 0x001ec000
SDRTS : org = 0x801f0000, len = 0x00010000
SDHEAP : org = 0x80200000, len = 0x00100000
#if RAMDSIC_SIZE
#endif
}
Include this default memory mapping in your application linker command file:
#define RAMDSIC_SIZE 0x00000000
#include "../../../BoardSupport/memorymap.cmd"
SECTIONS
{
"vectors" > IVT
.stack > IRAM
.sysmem > IRAM
.cio > SDRAM
.text > IRAM
.data > IRAM
.far > IRAM
.bss > IRAM
.const > IRAM
.switch > IRAM
.cinit > SDRTS
.pinit > SDRTS
.rtstext { -lrts6400.lib(.text) } > IRAM
.rtsbss { -lrts6400.lib(.far) } > IRAM
.rtsdata { -lrts6400.lib(.const) } > IRAM
}
SECTIONS
{
.dbuffer > SDRAM
.itext > IRAM
.iram > IRAM
.sdram > SDRAM
}
#define COMMONSECTIONS SDRAM
#include "../../../Common/CommonSections.cmd"
#define NETSECFAST IRAM
#define NETSECSLOW SDRAM
#define PBUFFER_SIZE 0x0c000
#define PBUFFER_ORG IRAM
#include "../../../Libs/Netlib/net.cmd"
SECTIONS
{
}