Go Down

Topic: Compile once, download on many systems (Read 2 times) previous topic - next topic

cappy2112


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.

robtillaart


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
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

pico


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!
WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available 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!


A link would be helpful.

Thanks

WizenedEE




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.

pico

WiFi shields/Yun too expensive? Embeddedcoolness.com is now selling the RFXduino nRF24L01+ <-> TCP/IP Linux gateway: Simpler, more affordable, and even more powerful wireless Internet connectivity for *all* your Arduino projects! (nRF24L01+ shield and dev board kits available too.)

CrossRoads

Can also purchase standalone programmers such as these if you need to distribute the programmers.
http://www.kanda.com/browse.php?node=121
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up