11

I have a number of sketches that I keep wanting to load into the Arduino but I don't necessarily need to recompile them because I haven't changed anything since the last compile. Since the compile takes a minute or 2 each time, this would save me some waiting.

I can see that the IDE has the option to "Export Compiled Binary", but doesn't seem to have the converse option of Uploading a previously compiled binary. Is there any way to do this?

  • Arduino 1.8.10 is using upload.py – FallenDragon Dec 18 '19 at 2:01
  • @FallenDragon. it is not. only the esp8266 arduino boards package has upload.py – Juraj Dec 21 '19 at 17:33
13

Yes! Its possible that you can upload a previously complied binary, using

AVRDUDE - a command line utility which is actually used to upload binaries, behind the arduino IDE.

You can find AVRDUDE in Arduino folder > hardware > tools > avr > bin

This some documentation for AVRDUDE http://www.nongnu.org/avrdude/user-manual/avrdude.html

else simplest thing you can do is turn on verbose output during upload and watch for a command in the end with AVRDUDE in it along with the path of hex file, just copy paste & run the same command in CommandLine; your task is accomplished.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.