Compiling to .hex

18 Nov 2009

Hi.

 

Is there a way to compile the code and get a .hex file so I can use it with my own board that I have designed?

Best regards.

18 Nov 2009

Hi,

We do not support the generation of .HEX files directly from the compiler, only the .bin file which is in raw binary format.

There are bin2hex utilities available that will do the file format conversion for you.

Regards,
Chris

18 Nov 2009

Hi Chris.

I looked for the BIN2HEX and guess where I found it:

http://www.keil.com/download/docs/113.asp

If you are using the Keil compiler, then why not add the software as part of the compiler?

Best regards.

18 Nov 2009

Hi Gidi,

Gidi mizrahi wrote:
If you are using the Keil compiler, then why not add the software as part of the compiler?

It is a simple design trade-off. If we added all the features that something like the Keil compiler has, it wouldn't be the lightweight compiler we were after!

Simon

26 Nov 2013

Try to search bin2hex in Keil's installation directory. I found several identical bin2hex utilties in projects' folder. However these tools are quite old. You have to rename your *.bin to 8+3 format (like project.bin, not Mybalabalabala.bin) before conversion.