6 years, 11 months ago.

Convert bin to hex file for Mac OSX 10.9

Hey guys,

I've started to use the online compiler of mbed.org. Unfortunately I just have the Chip1768 without the USB port. So I have to use ISP. The mbed online compiler creates .bin-files. Is there an opportunity to use Flash Magic with .bin-files or to convert .bin to .hex? I need it for MacOS X 10.9.

Or maybe is their another way to download my tools to the Chip1768?

Thanks and best regards, Flo

hi i to have same problem but i want solution for windows os 64bit

posted by chetan shapur 06 Dec 2016

3 Answers

6 years, 10 months ago.

If you don't want to go through the process of installing Homebrew on your Mac, you could also just download the GNU tools for ARM and use arm-none-eabi-objcopy to perform the conversion.

  • Download and install the Macintosh version of the latest GNU Tools for ARM Embedded
  • Use the following command line to convert the .bin file to a .hex file:
arm-none-eabi-objcopy -I binary -O ihex filename.bin filename.hex

I too highly recommend using lpc21isp instead of FlashMagic.

Flo Haase
6 years, 10 months ago.

Dear Brain,

thank you. This sounds great. I will try it as soon as possible and you will get feedback.

Best regards Flo

6 years, 10 months ago.

First time setup:

  1. Download and install Homebrew [http://www.brew.sh]
  2. In a Terminal window, run brew install srecord

Now to convert bin files to hex, in a Terminal window run:

srec_cat my_mbed_bin_file.bin -binary -o my_new_hex_file.hex -intel

You can also run brew install lpc21isp to install the open source ISP programming tool lpc21isp. It accepts either bin or hex files.