Need help to convert .elf file into .hex

Status
Not open for further replies.

itsvk

New member
Dear members,

I am doing a project based on Teensy 3.2. For this, I have a .elf file and I want to generate .hex out of it. Can anyone please suggest me How can I do it?

I don't have the original code so this option is not possible. The only thing I have is a .elf file generated from Arduino IDE.
 
Run "arm-none-eabi-objcopy" from the command line, like this:

Code:
arm-none-eabi-objcopy -O ihex -R .eeprom filename.elf filename.hex

The arm-none-eabi-objcopy program is inside your copy of Arduino. On Windows, the default install location is C:\Program Files (x86)\Arduino. Search is the easieset way to find the program.
 
Status
Not open for further replies.
Back
Top