Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Need help to convert .elf file into .hex

  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    1

    Need help to convert .elf file into .hex

    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.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,850
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •