Go Down

Topic: How to get hex file from arduino files ? (Read 140266 times) previous topic - next topic


Is it possible to convert the hexadecimal code back into the original programming language?
It's impossible to do it automatically. If you spent enough time studying the disassembly, you could use it to reconstruct the original program. Most likely it will be much faster to just write the program over again from scratch.


Is it possible to convert the hexadecimal code back into the original programming language?
Mmmmmm, seems like somebody is trying to find a way to steal other's work... LOL

More seriously, if you ask such a question, it means that you have not understand at all what is compilation and what it does. I really recommend you to get a book explaining the basic concepts of programming in high level languages to understand what a compiler does...


May 06, 2020, 12:25 am Last Edit: May 06, 2020, 07:37 am by adelle
Well, since it was bumped it's worth mentioning there is a new way to do this added in Arduino IDE 1.6.5:
  • Sketch > Export Compiled Binary
  • If you are doing this with an example then you will be prompted to save the sketch in another location.
  • Wait until the sketch has finished compiling.
  • Sketch > Show Sketch Folder
  • The .hex file will be in the sketch folder

Can I take this \.hex file from my Uno board and load into an ATmega328 via the AVR studio and the standard   MK2USB programmer?

I have a full ImageCraft development system that I have been using for years. However the Arduino libraries are quite handy versus building everything from scratch. SO I would like to develope in Arduino but still use the standard AVR tools in the end product development.

NOTE: I want nothing to do with boot loaders in the finished version. All my many previous Atmel projects run straight C to HEX from the ImageCraft compiler.  If I have to use a bootloader, I'm going to stay with the old proven ImageCraft approach.

Go Up