10 years ago.

Bin2Hex

Can anyone walk me through how to convert my bin files from the online compiler to a hex file so that I can upload the hex file in flashmagic. I am using Windows 8 and seem to be having trouble figuring out how to open bin2hex. If anyone can help that would be great.

2 Answers

10 years ago.

Try this:

http://sourceforge.net/projects/hexplorer/

Open your BIN file then simply export it as 'Intel Hex' file.

You can then load that Hex file into FlashMagic.

This works on Windows 7 32bit and 64bit, haven't tried Windows 8 and never will (I hope there will be a Windows 9 soon that's similar to Windows 7).

Once exporting the file, I just save it as a .hex file correct??

posted by Brandon Snell 24 Mar 2014

Yes, then you can open it in Flash Magic using the Browse button in Step 3. I use the Embedded Artists LPC1768/9 Jtag board to load the code onto the chip., baud rate 115200, interface None(ISP), Oscillator 12Mhz. Works every time.

posted by Paul Staron 24 Mar 2014
10 years ago.

Recommend that you read the manual that I compiled on using the Landtiger. It has the information that you need. Also check the notebook page on that board.

When I try to open any of the bin2hex.exe files listed in the manual it pops up and then immediately closes, keeping me from being able to use the software to make a hex file. Any idea why it does this?

posted by Brandon Snell 24 Mar 2014

You should run those bin2hex executables in a DOS box. Go to Start/Accessories/command prompt or something like that under Windows. Best thing is then to change directory to whereever you have saved the mbed binary and then run bin2hex on that file. You can get some help with bin2hex /h.

posted by Wim Huiskamp 24 Mar 2014