This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: is my SREC correct?


Piteir,

use arm-elf-objcopy -O srec hello.exe hello.srec.

Now if use run the file command on the srec file it will show you:

hello.srec: Motorola S-Record; binary data in text format

my .exe is 1844 kB and the srec file 220 kB, which is normal since
the srec file does not contain any debug info.
Try also arm-elf-size on the exe file, this will show you the actual
size of text and data segments (which in my case total to about 90 kB).

Regards,

	Rob

> Hi,
> I always failed to download hello example in srec
> format the hello example that I compile in cygwin
> size is 1029KB and I create srec format using
> 
> arm-elf-objcopy -O hello.exe hello.srec
> 
> the hello.srec size only 178KB from hello.exe 1029KB
> Is the arm-elf-objcopy produce an error result?


Rob Jansen

Software Engineer
Competence Center Platforms
BU Mobile Communications
Meijhorst 60-10, 6537 KT Nijmegen, The Netherlands
Tel: +31-24-353-6329
Fax: +31-24-353-3613
mailto:Rob.WJ.Jansen@philips.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]