|
Re: How to create memory sections for a given platform in RTSC [message #1591 is a reply to message #1577] |
Mon, 09 March 2009 18:07 |
Amit Mookerjee Messages: 47 Registered: July 2009 |
Member |
|
|
Hi Ravi,
Currently, the best way to do it in CCS4 is to define your memory sections
in a 'config.bld' file and by creating a platform instance.
For example if you want to put a section called 'SDRAM2' for the
TMS320DA830 device we should add the following to our config.bld file.
var dsp = xdc.useModule('ti.targets.C674');
dsp.rootDir = "C:/Program Files/Texas Instruments/CC Studio
v4_0_0_11_46/ccsv4/tools/compiler/c6000";
Build.targets = [
dsp
];
dsp.platform = "ti.platforms.generic:plat";
/* Define your memory sections */
var mem = [
["SDRAM2", {name: "SDRAM2", base: 0xC3000000, len:
0x00800000}],
];
Build.platformTable['ti.platforms.generic:plat'] =
{
clockRate: 300,
catalogName: 'ti.catalog.c6000',
deviceName: 'TMS320DA830',
externalMemoryMap: mem
};
Refer to the config.bld file in the project properties. This is done by
right clicking on the project, then selecting C/C++ Build -> XDCtools
v3.15 -> Advanced Options -> Build configuration file (-b). Click on the
"Browse" button and navigate to the config.bld file on your hard drive.
Now build the project.
You should see the following in the 'linker.cmd' file generated by
configuro in the folder 'Debug/configPkg' of your project:
MEMORY
{
IROM (RX) : org = 0x11700000, len = 0x100000
IRAM (RWX) : org = 0x11800000, len = 0x40000
L3_CBA_RAM (RWX) : org = 0x80000000, len = 0x20000
SDRAM2 : org = 0xc3000000, len = 0x800000
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04049 seconds