Skip to main content



      Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » How to create memory sections for a given platform in RTSC
How to create memory sections for a given platform in RTSC [message #1577] Mon, 09 March 2009 13:03 Go to next message
Eclipse UserFriend
When I created the project with a platform and target specified, it gives
me the memory map for both internal and external memory spaces. But, I
have only one SECTION name, for example L2RAM, for the whole space which I
can use to place my code.

I wanted to have a control on this to define multiple parts so that I have
tight control on what to place where. It would be useful for multi-core
applications where you wanted to share somethings b/w cores with known
memory address.

Any pointers on how to do this would be helpful.
Re: How to create memory sections for a given platform in RTSC [message #1591 is a reply to message #1577] Mon, 09 March 2009 14:07 Go to previous messageGo to next message
Eclipse UserFriend
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
}
Re: How to create memory sections for a given platform in RTSC [message #2052 is a reply to message #1591] Thu, 09 April 2009 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Amit,

How can I supply a linker command file for project directly instead of
using the one generated by RTSC project?

-Ravi-
Re: How to create memory sections for a given platform in RTSC [message #2065 is a reply to message #2052] Thu, 09 April 2009 20:03 Go to previous message
Eclipse UserFriend
Ravi Sankar Korada wrote:
> Amit,
>
> How can I supply a linker command file for project directly instead of
> using the one generated by RTSC project?
>
> -Ravi-
>
If you are using xdc to build your executable it can be specified as a
optional parameter to the add.Executable() method:
var exe = Pkg.addExecutable("myProg", target, targ.platform, {
linkTemplate: "./myTemplate"
});

See http://rtsc.eclipse.org/cdoc-tip/xdc/bld/Executable.html#.At trs

If you are using configuro, there is a --linkTemplate command line
option. Unfortunately there is no documentation of this option (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=271850). But this option
has the same effect as the linkTemplate option when using xdc.
Previous Topic:RTSC-Pedia is back up
Next Topic:Package path containing whitespace
Goto Forum:
  


Current Time: Thu Feb 27 20:39:03 EST 2025

Powered by FUDForum. Page generated in 0.03225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top