Compile once, download on many systems

For situations where people have many Arduino projects which need to be updated frequently,
it would be extremely helpful to have one or both of the following features added to the Arduino build and download environment.

  1. Compile and download using cmd line tools only, so that this process can be automated.
  2. Compile the hex file on one machine, and have the ability to run a tool which just downloads the hex file

Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.

Check the AVDUDE.exe command, it is in the distribution.

You can get an hex-image from an Arduino and save it to another one. Note that if you have something like serial numbers to track installs in the code this will not work without patching the image or go for a better architecture. You could think of writing serial numbers in EEPROM. AVRDUDE.exe can do that too

cappy2112:
Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.

These already exist, in several variants, I'm using (for example) Martin Oldfield's makefile for the Arduino. Has the added benefit of bypassing all of the bugs in the IDE precompiler (you need to declare your own prototypes, though -- but overall, a very good deal.) Also the standard C/C++ precompiler then works properly and predictably again without the IDE precompiler stuffing things up. This by itself well worth the price of admission. Choose a decent programmer's editor and you'll never look back!

pico:

cappy2112:
Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.

These already exist, in several variants, I'm using (for example) Martin Oldfield's makefile for the Arduino. Has the added benefit of bypassing all of the bugs in the IDE precompiler (you need to declare your own prototypes, though -- but overall, a very good deal.) Also the standard C/C++ precompiler then works properly and predictably again without the IDE precompiler stuffing things up. This by itself well worth the price of admission. Choose a decent programmer's editor and you'll never look back!

A link would be helpful.

Thanks

cappy2112:

pico:

cappy2112:
Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.

These already exist, in several variants, I'm using (for example) Martin Oldfield's makefile for the Arduino. Has the added benefit of bypassing all of the bugs in the IDE precompiler (you need to declare your own prototypes, though -- but overall, a very good deal.) Also the standard C/C++ precompiler then works properly and predictably again without the IDE precompiler stuffing things up. This by itself well worth the price of admission. Choose a decent programmer's editor and you'll never look back!

A link would be helpful.

Thanks

I:

  1. Highlighted "Martin Oldfield's makefile"
  2. Right Clicked
  3. Pressed "Search Google for..."
  4. Clicked first result
  5. Posted this

Guess which took the most time? Step 5.

WizenedEE:
Guess which took the most time? Step 5.

LOL.

Can also purchase standalone programmers such as these if you need to distribute the programmers.