Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Memory fill using configuration file
Memory fill using configuration file [message #3109] Thu, 07 May 2009 17:23 Go to next message
Martin Ambrose is currently offline Martin Ambrose
Messages: 1
Registered: July 2009
Junior Member
Hello.

I have a separate linker command file with this directive:

.data:DSPLINK_shmBaseAddress: fill=0xC3F05000 {} > SDRAM

Ideally I could subsume this into my .cfg file but I don't know if this is
possible. Last I checked (Oct 2008) it wasn't possible but on the list of
future features.

Intuitively this might be done via Program.sectMap but "fill" isn't an
option per:
http://rtsc.eclipse.org/cdoc-tip/xdc/cfg/Program.html

Regards,
Martin
Re: Memory fill using configuration file [message #3181 is a reply to message #3109] Wed, 13 May 2009 16:54 Go to previous messageGo to next message
Sasha Slijepcevic is currently offline Sasha Slijepcevic
Messages: 89
Registered: July 2009
Member
Martin,
the functionality you are looking for is not there yet. We do have plans
to extend Program.sectMap[], but that did not make it to 3.15. Some of the
features supported in linker command files could be hard to support
through Program.sectMap, but 'fill' is not that difficult to add. I'll add
it to the list for the next patch or a release.
Re: Memory fill using configuration file [message #3215 is a reply to message #3109] Wed, 13 May 2009 17:27 Go to previous message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
Martin Ambrose wrote:
> Hello.
>
> I have a separate linker command file with this directive:
>
> .data:DSPLINK_shmBaseAddress: fill=0xC3F05000 {} > SDRAM
>
> Ideally I could subsume this into my .cfg file but I don't know if this
> is possible. Last I checked (Oct 2008) it wasn't possible but on the
> list of future features.
>
The TI linker will accept multiple linker command files in the command
line. You can add your custom linker command file via lopts attribute
if you are using xdc to build or via the CCS4 linker options.
rm -f package/cfg/Hello.x64P.map

lnk6x -w -q -u _c_int00 foo.cmd -q -o Hello.x64P \
package/cfg/Hello_x64P.o64P package/cfg/Hello_x64P.xdl -c \
-m package/cfg//Hello.x64P.map \
-l rts64plus.lib

$cat foo.cmd
foo=3;

$grep foo package/cfg//Hello.x64P.map
00000003 foo
00000003 foo

If you need to modify the generated linker command file, the best way is
to simply supply a different template for its generation. This can also
be done relatively easily. See the linkTemplate attribute of
Executables:
http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/bld/Executab le.html#.Attrs
Note there is also an --linkTemplate command option for configuro that
does the same thing.

You can copy the existing template from the ti.targets package
(linkcmd.xdt) and make the necessary changes.

> Intuitively this might be done via Program.sectMap but "fill" isn't an
> option per:
> http://rtsc.eclipse.org/cdoc-tip/xdc/cfg/Program.html
>
This would be a good addition to Program.SectionSpec. It's quite useful
for initializing stacks as well.

> Regards,
> Martin
>
Previous Topic:Creating a buffer in .cfg
Next Topic:To Rebuild the Package ... or not
Goto Forum:
  


Current Time: Thu Oct 02 10:30:42 GMT 2014

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

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