File Format Questions
Joel Sherrill
joel.sherrill at OARcorp.com
Tue Aug 19 21:02:35 UTC 2003
Aditya wrote:
> Dear Joel
> Thank You...
>
> This is what I have done...changed the objcopy line as follows in
> i386ex.cfg
>
>
>
> define make-exe
> $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
> $(LINK_OBJS) $(LINK_LIBS)
> $(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
> <--------- srec in this line
> sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
> $(PACKHEX) > $(basename $@).exe
> $(NM) -g -n $(basename $@).coff > $(basename $@).num
> $(SIZE) $(basename $@).coff
> endef
>
> ------------------------------------------------------------------------
> ----------------------------------
>
> define make-exe
> $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
> $(LINK_OBJS) $(LINK_LIBS)
> $(OBJCOPY) -O ihex $(basename $@).coff $(basename $@).i
> <--------- changed to ihex in this line
> sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
> $(PACKHEX) > $(basename $@).exe
> $(NM) -g -n $(basename $@).coff > $(basename $@).num
> $(SIZE) $(basename $@).coff
> Endef
>
>
>
>
> Is This OK? Or anything else to do...
That looks OK to me by the objcopy documentation.
> Regards
> ADITYA.
>
>
>
> Aditya wrote:
>
>
>>Dear RTEMS Users..
>>
>>The hello.exe and other sample(.exe) files created for the i386ex bsp
>>look like Motorola S Record files internally. Am I Right..?
>
>
> The .exe format is whatever the board has to use to get an image
> downloaded to it. This may be Srecords, coff, elf, a.out, Intel
> Hex, etc. Looking at the file make/custom/i386ex.cfg, you are
> right it is S records.
>
>
>>If no what is the format?
>>
>>If yes then HOW to change this S Record files to Intel .HEX files ?
>
>
> Change the make-exe rule in make/custom/i386ex.cfg.
>
>
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list