+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 1
    Points: 1,001, Level: 7

    Join Date
    Feb 2017
    Posts
    99
    Helped
    0 / 0
    Points
    1,001
    Level
    7

    Generate a .bin file from .elf file ?

    In this case ".elf" is generated for a arc processor from a synopsys metaware IDE SDK tool.

    I want to convert to .bin or particularly .hex file so that i can use it for a verilog memory initialization file ($readmemh) and do some simulations.

    Thanks

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 265,442, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    46,381
    Helped
    14116 / 14116
    Points
    265,442
    Level
    100

    Re: Generate a .bin file from .elf file ?

    Executable binary is part of the *.elf content. It can be extracted with tools for the respective processor. More easily, you can instruct the IDE to generate a *.hex or *.bin file directly during compilation.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 1
    Points: 1,001, Level: 7

    Join Date
    Feb 2017
    Posts
    99
    Helped
    0 / 0
    Points
    1,001
    Level
    7

    Re: Generate a .bin file from .elf file ?

    with my novice knowlege . i explored all the options available in the sdk gui but unable to figure out how to instruct the IDE. i searched help-> help contents. but no help on this topic(or they may be using other sw terminology which i dont understand).

    on googling, I found objcopy command. but endup with this in cygwin terminal

    $ objcopy hello_world.elf -O binary
    objcopy: Unable to recognise the format of the input file `hello_world.elf'



--[[ ]]--