EmbDev.net

Forum: ARM programming with GCC/GNU tools how to get hex file from obj file


Author: Kumar Pk (praveen_g_v)
Posted on:

Rate this post
0 useful
not useful
can any one tell me  how can i get a hex file
from a object (.o) (file obtained from compilation of a ".c" file)

Author: Patrick Deflandre (patrick-deflandre)
Posted on:

Rate this post
0 useful
not useful
kumar pk wrote:
>
>
> can any one tell me  how can i get a hex file
> from a object (.o) (file obtained from compilation of a ".c" file)

Use something like :
objcopy -O ihex -S program.elf program.hex

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.