# How to use elf2hex in Win 7 environment?

**URL:** <https://forums.sifive.com/t/how-to-use-elf2hex-in-win-7-environment/2500>\
**Category:** RISC-V\
**Created:** [June 18, 2019, 9:38pm UTC](https://forums.sifive.com/t/how-to-use-elf2hex-in-win-7-environment/2500 "2019-06-18T21:38:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jb007jb](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jb007jb](https://forums.sifive.com/u/jb007jb)\
**Post date:** [June 18, 2019, 9:38pm UTC](https://forums.sifive.com/t/how-to-use-elf2hex-in-win-7-environment/2500/1 "2019-06-18T21:38:02Z")

</div>

How to use elf2hex in Win 7 environment?  
My development environment uses win7, eclipse and riscv32-unknown-elf-gcc.

I saw the following.  
We have support for converting ELF files into binary files (for embedded targets) and hex files (for verilog simulators). objdump can convert an ELF file to a binary file. elf2hex can convert an ELF file to a hex file. objdump is part of FSF binutils. elf2hex is found at

> **[sifive/elf2hex](https://github.com/sifive/elf2hex)**
>
> Converts ELF files to HEX files that are suitable for Verilog's readmemh. - sifive/elf2hex

How do I use elf2hex in the Win7 eclipse environment?
