Loading...
Pages: [1]   Go Down
Author Topic: Compile once, download on many systems  (Read 1232 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 172
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 87
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Sr. Member
****
Karma: 11
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 172
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 15
Posts: 1003
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Sr. Member
****
Karma: 11
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Guess which took the most time? Step 5.

LOL.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 242
Posts: 16482
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can also purchase standalone programmers such as these if you need to distribute the programmers.
http://www.kanda.com/browse.php?node=121
Logged

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

Pages: [1]   Go Up
Print
 
Jump to: