Go Down

Topic: How can I upload to my Arduino without compiling? (Read 6060 times) previous topic - next topic


Jul 31, 2012, 05:25 pm Last Edit: Aug 03, 2012, 12:15 am by funlw65 Reason: 1
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.

A funny thing: the users of MPIDE wants the same thing!

Udo Klein

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


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


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")


...less than an hour.

Wow, that's some huge program!  :P

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.

Udo Klein

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.
Check out my experiments http://blog.blinkenlight.net


Aug 03, 2012, 12:27 am Last Edit: Aug 03, 2012, 12:59 am by funlw65 Reason: 1


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


scons is much easier to pickup and maintain.

Hi Klein,

Consider also this scenario, from the MPIDE forums:
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:
I wish MPIDE could be used to upload hex files without compiling, that would be easy!

Best regards,

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131