DSPRelated.com
Forums

coff file conversion problem

Started by Selvaraj V November 16, 2004

hi

Using hex utility i want to  generate the files which can be written to the  "ram"  from the coff file .

but  on giving the following option in the  hex utility  command file  

tone.out
-a
-byte
-memwidth 32
-romwidth 32
-order  L

ROMS
{
        PGM: org =0x00000000,length =0x50000
        DATA: org=0x80000000,length =0x100000
}    

i  got the following  output  on the screen  
 

TMS320C6x COFF/Hex Converter     Version 4.10
Copyright (c) 1996-2001 Texas Instruments Incorporated
Translating tone.out to ASCII-Hex format...
   "tone.out"   ==> vectors
   "tone.out"   ==> .text
   "tone.out"   ==> .const
>> WARNING: section .cinit overlaps unconfigured memory at 080000288h (.cinit in
complete)

can any  one tell what is  the problem ?.

my guess  is  the cmd file used for generating the  out  file  must  be modified  
 

Regards
Selvaraj.v

______________________________________________________________________


1.) I'm not quite sure about this, but I think that it will be a problem
that you try to put data from 0x80000000 to your hex file. From my point of
view, hex6x generates the image starting from 0, without leaving anything
out. So your file will be quite large.

2.) Why are you using hex Files to write your program to RAM? Normally you
need that if you want to burn your program to a EEPROM on an external
EEPROM-Programmer.

3.) Do you really need the DATA section in your hex File? Does it contain
initialized data?, well I think yes - cinit contains initialized global
variables

4.) I think you have to modify your compilers-cmd file in a way that all the
sections you need in your hex-file are linked to the location where they
should be in the .hex image (I use 2 different settings if I compile a .out
file I want to load using CCS or I want to burn to my boot-EEPROM). First
you have to compile/link an .out file in which all sections are in the place
where they should be in the hex file, after that, you can create the .hex
file

5.) I would recommend to tell hex6x (in the hex6x-cmd File) each section it
should put into the image - for example:

SECTIONS
{
.text
.switch
.const
.cinit
.pinit
.HWI_TAB
}

bye,

Thomas

> hi
>
> Using hex utility i want to generate the files which can be written to
> the "ram" from the coff file .
>
> but on giving the following option in the hex utility command file
>
> tone.out
> -a
> -byte
> -memwidth 32
> -romwidth 32
> -order L
>
> ROMS
> {
> PGM: org =0x00000000,length =0x50000
> DATA: org=0x80000000,length =0x100000
> }
>
> i got the following output on the screen > TMS320C6x COFF/Hex Converter Version 4.10
> Copyright (c) 1996-2001 Texas Instruments Incorporated
> Translating tone.out to ASCII-Hex format...
> "tone.out" ==> vectors
> "tone.out" ==> .text
> "tone.out" ==> .const
> >> WARNING: section .cinit overlaps unconfigured memory at 080000288h
> (.cinit in
> complete)
>
> can any one tell what is the problem ?.
>
> my guess is the cmd file used for generating the out file must be
> modified > Regards
> Selvaraj.v

--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergstigen Komplett-Preis!