What are Hex files


(Mathias Zillmann) #1

Hello Community,

I just learned about the new .arduboy file format. While reading about it, I learned that .hex files should be used in order to use tool like the GameLoader.

My question is now: Sorry for such a noob question:

What are Hex files and how do I get a hex file from my .ino file?


Android and Arduboy Mate
(Scott) #2

A .hex file is the binary output that the compiler creates from the .ino and other sketch source files. It’s called a .hex file because it’s in Intel Hex format.

The standard way to make one is to use the Arduino IDE:

  • Load a sketch into the IDE as usual.
  • Instead of verifying or uploading the sketch, from the menu use:
    Sketch > Export compiled Binary
  • To open the folder containing the .hex file use:
    Sketch > Show Sketch Folder
  • The file you want is the .hex file that doesn’t contain with_bootloader in its name.
  • You can rename this file to whatever you wish, as long as the extension is left as .hex

Playing old arduventure using Project ABE
Ardulem: The Lemmings arrive on Arduboy!
Arcodia - A ZX Spectrum Port
(Mathias Zillmann) #3

Thanks so much for the quick help! This pushing me really forward in getting more and more done.


#4

How do you load .hex files?


(Mike McRoberts) #5

You don’t, use the .arduboy file.


(Kevin) #6

If for some reason you did want to load .hex files then you can do it with the command line tool “avrdude”. There are many tutorials online how to do this, so you can search online for that.

Generally it isn’t a recommended practice, but it’s possible if you want.


(Holmes) #7

One could even flash them directly with my Arduboy Manager. Or… You can import them and add pictures/metadata yourself.