Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Embedded > .ELF to .BIN co...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 393 of 414
Post > Topic >>

.ELF to .BIN conversion is working for one set of source code , but it is not working with another set of code . Really Strange !!!

by "KBG" <karthik.balaguru@[EMAIL PROTECTED] > Sep 20, 2006 at 02:52 AM

Hi Friends,

I have successfully compiled the Umon in Codewarrior environment. I do
not face any problem in running from RAM.

..ELF to .BIN conversion is working for one set of source code , but it
is not working with another set of code . Really Strange !!!

Currently, i am trying to convert the .ELF to .BIN so that it can be
fused in the FLASH memory and make it boot from flash.

I am trying to convert a .ELF file .BIN file using m68k-elf-objcopy.
But, the resulting
..BIN file is of zero bytes in size. This is really strange .

I do the following for converting .ELF to .BIN  :
1) m68k-elf-objcopy -O binary umon.elf umon.bin

The size of the various files that were generated via codewarrior for
this project is listed below:
1) umon.elf           439240 - Got from codewarrior
2) umon.elf.s19     898330 - Got from codewarrior
3) umon.elf.b        360447 - Got from codewarrior
4) app.elf.xMap    134401 -  Got from codewarrior

5) umon.bin          0        -  Got using command "m68k-elf-objcopy -O
binary umon.elf umon.bin" in cygwin environment (.ELF to .BIN
conversion)


I took another .ELF file(different source code and different project
file) that was generated by compiling and linking with the same
Codewarrior configurations that I set for this project while generating
the .elf file .

Then, i did "m68k-elf-objcopy -O binary clock.elf clock.bin".
It is working perfectly.

Is there any setting that will affect the generation of the .elf file
that in turn creates some problem while converting to .bin file using
'm68k-elf-objcopy'.

Is this in any way related with the LCF file or the source code written
?

..ELF to .BIN conversion is working for one set of source code , but it
is not working with another set of code ? Really Strange ? Where could
the problem be ?

Kindly share your views or experiences in this issue.

Tonnes of Thx in advans,
Thanks and Warm Regards,
Karthik balaguru
 




 1 Posts in Topic:
.ELF to .BIN conversion is working for one set of source code ,
"KBG" <karth  2006-09-20 02:52:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 13:31:54 CDT 2008.