Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | editing linker file .cmd - file

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

editing linker file .cmd - file - markan_b - Nov 4 16:06:00 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
}




______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



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

Re: editing linker file .cmd - file - Andrew Elder - Nov 4 16:40:00 2002

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
>} >
>
>_____________________________________






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