Pages: [1]   Go Down
Author Topic: Open-source command line Arduino sketch compiler & uploader  (Read 1695 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

I've developed a command line utility to compile Arduino sketch and upload to Arduino boards without the need of Arduino IDE. This is developed mainly for applications which generate code for Arduino and requires to perform compiling and uploading. Arduino Leonardo and Esplora are supported.

Command Line Syntax
Quote
ArduinoUploader [sketch/HEX file] [board type] [serial port/usbasp]

Board types:
1 - Arduino Uno
2 - Arduino Leonardo
3 - Arduino Esplora
4 - Arduino Duemilanove (328)
5 - Arduino Duemilanove (168)
6 - Arduino Nano (328)
7 - Arduino Nano (168)
8 - Arduino Micro
9 - Arduino Mini (328)
10 - Arduino Mini (168)
11 - Arduino Pro Mini (328)
12 - Arduino Pro Mini (168)
13 - Arduino Mega 2560/ADK
14 - Arduino Mega 1280
15 - Arduino Mega 8

Examples

Compile and upload Blink.ino to Arduino UNO:

Quote
ArduinoUploader Blink.ino 1 COM4 (Windows)
ArduinoUploader Blink.ino 1 /dev/ttyUSB0

Burn bootloader for Arduino Pro Mini 168 via USBASP

Quote
ArduinoUploader optiboot_atmega168.hex 9 usbasp

Link: (removed pending review by moderator)


* uploader.png (14.94 KB, 677x938 - viewed 30 times.)
« Last Edit: September 05, 2013, 01:29:04 pm by Coding Badly » Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

looks like a great tool!

does it work with multiple files and/or external libraries too?

best,
j
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16513
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I attempted to download and run the installer programs, it triggered lots of messages from my maleware and windows defender programs, added lots of stuff to the windows desktop. Not saying it's bad/malicious or whatever, could just be my machine or windows awareness, but I just ended up going back to my back-up hard drive of my windows machine.

 Hopefully someone can look into as it seems it would be a handy arduino utility program to have on hand. On the other hand if there is 'problems' with this download/installer program this posting might need some attention from the moderators.

Lefty
Logged

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

Are you downloading from the official source? I guess not. Because it release a zip file, so it won't add anything to your system.
Logged


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

As it is open source, you can grab the source and compile yourself.
https://github.com/stanleyhuangyc/ArduinoUploader
Logged


Manchester (England England)
Online Online
Brattain Member
*****
Karma: 508
Posts: 31404
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Has your web site been hacked then. It contains a big green "download now" arrow.
Logged

Pages: [1]   Go Up
Jump to: