Pages: 1 [2]   Go Down
Author Topic: How can I upload to my Arduino without compiling?  (Read 2378 times)
0 Members and 1 Guest are viewing this topic.
Pistestii din Deal
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino project collection rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In other words, why Arduino IDE does not have an interface similar to avrdude GUI? Considering that one of the goals is to support other AVRs as well, I think is time to have the required tool to upload the .hex files.

Why we need it... Imagine that maybe I'm making boards for others, boards which use different ATmegas and I need to upload hex files to test the board functionality, frequently switching from one ATmega to another (and obviously, from a hex file to another). For those hex files, I need to compile only once. But there can be various scenarios...

For the start, it will be good to have a GUI interface to Optiboot bootloader.
BTW, Optiboot bootloader support ATmega168P which is not yet supported by Arduino IDE and such interface will help if you decided to go beyond Arduino language.

_____________
Edit:
A funny thing: the users of MPIDE wants the same thing!
« Last Edit: August 02, 2012, 05:15:19 pm by funlw65 » Logged

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3495
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/playground/Learning/CommandLine

However I suggest to not go for make but for scons.

https://github.com/suapapa/arscons

scons is much easier to pickup and maintain.
Logged

Check out my experiments http://blog.blinkenlight.net

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

However I suggest to not go for make but for scons.

https://github.com/suapapa/arscons

scons is much easier to pickup and maintain.

Despite the fact that make is used literally everywhere? And it's as simple as (for my makefile) typing "make" "make upload" or "make monitor" (or "make upload monitor")
Logged

Earth (I think)
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
...less than an hour.
Wow, that's some huge program!  smiley-razz
3ms is less than an hour. Just thought I'd point that out.

I find myself in the same situation as the original poster sometimes: I have to wait for the whole sketch to recompile because I forgot to plug in the board. Is there any way to get the basic Arduino IDE to only compile/link the parts that have changed? This would also be useful for compiling sketches with multiple files: if you haven't changed the file, it doesn't need to recompile.
Logged


0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3495
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

make is used quite often for historic / backwards compatibility reasons. If you start from scratch there is no need to go for make. Make has awkward syntax and little to no debug support. scons on the other hand is based on python. That is instead of tricking your way through complicated stuff you can just code it (and debug it). I find scons ***way*** simpler to pick up than make. I defintely invested more time in scons than in make. For the very reason that make has lots of nasty surprises and scons is simple. For my private projects I will use scons over make 99 out of 100.
Logged

Check out my experiments http://blog.blinkenlight.net

Pistestii din Deal
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino project collection rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/playground/Learning/CommandLine

However I suggest to not go for make but for scons.

https://github.com/suapapa/arscons

scons is much easier to pickup and maintain.

Hi Klein,

Consider also this scenario, from the MPIDE forums:
Quote
I would like to send a hex file to a customer and give them the ability to upload without sending the whole project.
. I've posted the link on the previous post. Make is (a solution but) definitely not for them (clients), and is scaring for beginners.
Anyway, is not my problem (even if it is a real one considering all the cases) as I'm successfully using avrdude-GUI with the last version of avrdude. The OP from the MPIDE forums said also:
Quote
I wish MPIDE could be used to upload hex files without compiling, that would be easy!

Best regards,
Vasi
« Last Edit: August 02, 2012, 05:59:12 pm by funlw65 » Logged

Pages: 1 [2]   Go Up
Jump to: