Pages: [1]   Go Down
Author Topic: CLI utility for building Arduino sketch and uploading to board at one go  (Read 666 times)
0 Members and 1 Guest are viewing this topic.
Sydney
Offline Offline
Full Member
***
Karma: 1
Posts: 108
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Today I wrote a command line utility for compiling Arduino sketch file and uploading to Arduino board. With a single command line invoking, this can be done all at once without the need for Arduino IDE. The utility  scans the sketch for referenced libraries and build the necessary libraries. Currently only single sketch file is supported. All the core static libraries for various targets are all built and retrieved with Arduino IDE.

Code:
Arduino Sketch Uploader Version 0.1 (C)2012 Written by Stanley Huang

Command line syntax:
sketchuploader [sketch file] [board type] [serial port]

Board types:
1 - Arduino Uno
2 - Arduino Duemilanove (328)
3 - Arduino Duemilanove (168)
4 - Arduino Nano (328)
5 - Arduino Nano (168)
6 - Arduino Mini (328)
7 - Arduino Mini (168)
8 - Arduino Pro Mini (328)
9 - Arduino Pro Mini (168)
10 - Arduino Mega 2560/ADK
11 - Arduino Mega

http://www.arduinodev.com/sketchuploader-arduino-sketch-uploading-utility/


* sketchuploader-1024x830.png (257.06 KB, 1024x830 - viewed 9 times.)
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What happens when there is an error while compiling?
Won't you go into the IDE to fix it anyway?

How does one get '1284 boards into there?
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.
Arduino for Teens available at Amazon.com.

Sydney
Offline Offline
Full Member
***
Karma: 1
Posts: 108
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The compile errors will be displayed the error lines will be outlined.
This utility is intended for use with automatic code generation applications.
« Last Edit: June 08, 2012, 05:04:43 am by stanleyhuang » Logged


Pages: [1]   Go Up
Jump to: