DSPRelated.com
Forums

editing linker file .cmd - file

Started by markan_b November 4, 2002
I have a with creating two buffers each of 8192 bytes in Internal
memory (IRAM)-->I always get linking problem such like:
error: relocation overflow occured at address e.g. 0x00000430 in
section '.text'

Is it possible to create these buffers in IRAM and if so, can
somebody tell me how to edit the linker file...or how can I force
creating these buffers in SDRAM...???

Is there any tutorial describing how to edit linker files ...??? At the bottom of this mail, you can see my .cmd-File ......

It is very important for me ...

Thank you in advance,
Marko Babic //**************************************************************
/*C6xdsk.cmd Generic Linker command file*/

MEMORY
{
VECS: org = 0h, len = 0x220
IRAM: org = 0x00000220, len = 0x0000FDC0 /*internal memory*/
SDRAM: org = 0x80000000, len = 0x01000000 /*external memory*/
FLASH: org = 0x90000000, len = 0x00020000 /*flash memory*/
}

SECTIONS
{
vectors :> VECS
.text :> IRAM
.bss :> IRAM
.cinit :> IRAM
.stack :> IRAM
.sysmem :> SDRAM
.const :> IRAM
.switch :> IRAM
.far :> SDRAM
.cio :> SDRAM
}




Marko,

You are supposed to compile with the .lst option enabled and then look at
address 0x0430 in the listing file of the associated module to see what is going
on.

I actually think there is a bug in the CCS 2.12.14 linker related to this. I'm
seeing the same error reported for a .bss variable when my total .bss segment
size is 0x4c. Your problem could be something completely different though.

Related to your problem, do you need the buffers to be located in fast memory ?

You could at least change
> .cinit :> IRAM
to
> .cinit :> SDRAM


It is difficult to make further comments without looking at the .map file.

Cheers,
Andrew E.

At 04:06 PM 11/4/2002 +0000, markan_b wrote:
>I have a with creating two buffers each of 8192 bytes in Internal
>memory (IRAM)-->I always get linking problem such like:
> error: relocation overflow occured at address e.g. 0x00000430 in
> section '.text'
>
>Is it possible to create these buffers in IRAM and if so, can
>somebody tell me how to edit the linker file...or how can I force
>creating these buffers in SDRAM...???
>
>Is there any tutorial describing how to edit linker files ...??? >At the bottom of this mail, you can see my .cmd-File ......
>
>It is very important for me ...
>
>Thank you in advance,
>Marko Babic >//**************************************************************
>/*C6xdsk.cmd Generic Linker command file*/
>
>MEMORY
>{
> VECS: org = 0h, len = 0x220
> IRAM: org = 0x00000220, len = 0x0000FDC0 /*internal memory*/
> SDRAM: org = 0x80000000, len = 0x01000000 /*external memory*/
> FLASH: org = 0x90000000, len = 0x00020000 /*flash memory*/
>}
>
>SECTIONS
>{
> vectors :> VECS
> .text :> IRAM
> .bss :> IRAM
> .cinit :> IRAM
> .stack :> IRAM
> .sysmem :> SDRAM
> .const :> IRAM
> .switch :> IRAM
> .far :> SDRAM
> .cio :> SDRAM
>} >
>
>_____________________________________
>Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
>_____________________________________
>About this discussion group:
>
>To Join: Send an email to
>
>To Post: Send an email to
>
>To Leave: Send an email to
>
>Archives: http://www.yahoogroups.com/group/c6x
>
>Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/