EmbDev.net

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


von Kumar P. (praveen_g_v)


Rate this post
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)

von Patrick D. (patrick-deflandre)


Rate this post
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.