Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Code-Composer | how to put a library into a specified memory section

Technical discussions about Code Composer Studio.

  

Post a new Thread

how to put a library into a specified memory section - Raghunath Mallya - May 11 9:04:00 2005



HI All:

anyone of you know how to put a entire library into a
specified memory section especially into external
memory....can i get some tips in this reagards..

With best wishes

Raghu




(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

Re: how to put a library into a specified memory section - Bhooshan Iyer - May 12 2:04:00 2005

Raghunath--
The section 9.2.4 of the programmers guide(spru198.pdf) describes how
to place the RTS(Run Time Support Library) off-chip(external memory,
if you will) and the trade off's involved in doing so. I would assume
the technique afore mentioned should be applicable to any library,
including user defined ones. I Have listed the example linker command
file from the manual below for your reference:

--Bhooshan

/*********************************************************************/
/* farlnk.cmd – Link command file which puts RTS off-chip */
/*********************************************************************/
–c
–heap 0x2000
–stack 0x4000
/* Memory Map 1 – the default */
MEMORY
{
PMEM: o = 00000000h l = 00010000h
EXT0: o = 00400000h l = 01000000h
EXT1: o = 01400000h l = 00400000h
EXT2: o = 02000000h l = 01000000h
EXT3: o = 03000000h l = 01000000h
BMEM: o = 80000000h l = 00010000h
}
SECTIONS
{
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* Sections defined only in RTS. */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.stack > BMEM
.sysmem > BMEM
.cio > EXT0
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* Sections of user code and data */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.text > PMEM
.bss > BMEM
.const > BMEM
.data > BMEM
.switch > BMEM
.far > EXT2
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* All of .cinit, including from RTS, must be collected together */
/* in one step. */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.cinit > BMEM
How to Save On-Chip Memory by Placing RTS Off-Chip
9-9 Linking Issues
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* RTS code – placed off chip */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.rtstext { –lrts6200.lib(.text) } > EXT0
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* RTS data – undefined sections – placed off chip */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.rtsbss { –lrts6200.lib(.bss)
–lrts6200.lib(.far) } > EXT0
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* RTS data – defined sections – placed off chip */
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.rtsdata { –lrts6200.lib(.const)
–lrts6200.lib(.switch) } > EXT0
} On 5/11/05, Raghunath Mallya <raghu_mallya@ragh...> wrote:
> HI All:
>
> anyone of you know how to put a entire library into a
> specified memory section especially into external
> memory....can i get some tips in this reagards..
>
> With best wishes
>
> Raghu
>




(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )