Go Down

Topic: Flashing a hex file from the IDE (Read 8182 times) previous topic - next topic

bengtmartensson

Since some time, the IDE can generate a hex file (Sketch -> Export compiled binary). However, AFAIK, there is no way to actually upload that hex file without compiling again.

I am looking for a user friendly way to flash a provided hex file, using the IDE. Something like Xloader or avrdudess, but in the standard IDE.

(Just to prevent non-answers: My goal is not to distribute closed-source software.)

robtillaart

so you want a button "upload last compiled HEX image"

then you probably want also the button "download HEX image"
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

bengtmartensson

so you want a button "upload last compiled HEX image"
No. I want a possibility to upload "any" hex file, user selectable with a file selector.

Quote
then you probably want also the button "download HEX image"
No.

Was I that unclear?

robtillaart

No, but I've seen many posts of people want to duplicate a "running uno" and they do not have access to the (exact) sources
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

luckysam

It would be great to have an upload button. Compiling everything again just to upload the sketch is boring.

westfw

Quote
Compiling everything again just to upload the sketch is boring.
True.  Uploading a .hex file compiled for one board to a different board IS exciting and mysterious...  :-)
(Note that a .hex file does NOT contain any information about which chip it was compiled for...)

Where would this "upload .hex file" command fit, in the current command/menu structure?  Only the (seldom-used) "open" command actually prompts for a filename - I guess adding "burn binary file" next to "burn bootloader" wouldn't be too jarring...


Benji

I can't wait for all the 'my uno is acting weird since I uploaded this .hex file that someone send me'.

steronydh

I can see the benefit of this when used sensibly.

Delta_G

I can see the benefit of this when used sensibly.
You get AVRDude with Arduino. I suspect that most of the folks who could use such a function sensibly could figure out (i.e. Use google) how to use AVRDude to upload the raw hex file. It really isn't hard.
If at first you don't succeed, up - home - sudo - enter.

michelv

A solution is to download the Atmel Studio software (only costs you a registration) and upload from there with a programmer.

liuzengqiang

Best way is to display upload message and just copy and paste into command window if you want upload, changing the name of the .hex file.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

westfw

Quote
A solution is to download the Atmel Studio software
I always like to download complex 3GB+ vendor installs in order to avoid having to learn how to use command-line programs...
 :-)

michelv

I always like to download complex 3GB+ vendor installs in order to avoid having to learn how to use command-line programs...
 :-)

Glad Arduino is not using anything like a mouse driven interface...

westfw

Quote
Glad Arduino is not using anything like a mouse driven interface...
One of the things I like to point out when people complain about the Arduino IDE being primitive, is that it's also pretty small.  Less than 500MB on my Mac, and less than 200MB for the download.  Compared to that 3G for Atmel Studio or MPLABX.  Arduino has a small fraction of the features, but it installs in a small fraction of the time and starts up in a small fraction of the time, too...

There are some other GUI front ends for AVRDude (AVRDudess, I think I've heard?)  They're probably easier to figure out than AS.

kewakl

Arduino has a small fraction of the features, but it installs in a small fraction of the time and starts up in a small fraction of the time, too...
And with 1.6.12 with teensyduino, it crashes faster, too! No Error message, no dialog, just  ... desktop.

Go Up