Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:03 Go to next message
Ravi Sankar Korada is currently offline Ravi Sankar KoradaFriend
Messages: 2
Registered: July 2009
Junior Member
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 18:07 Go to previous messageGo to next message
Amit Mookerjee is currently offline Amit MookerjeeFriend
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
}
Re: How to create memory sections for a given platform in RTSC [message #2052 is a reply to message #1591] Thu, 09 April 2009 14:56 Go to previous messageGo to next message
Ravi Sankar Korada is currently offline Ravi Sankar KoradaFriend
Messages: 2
Registered: July 2009
Junior Member
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] Fri, 10 April 2009 00:03 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
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: Tue Apr 23 06:36:56 GMT 2024

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

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

Back to the top