Go Down

Topic: .hex file path (Read 20174 times) previous topic - next topic


Hi, I am using a programmer instead of IDE's avrdude. Is there a trick how to tell (0022 as well as 1.0.1) to IDE where to store the .hex files? The current random .hex files assignment is a nightmare..p.


I was not aware that hex files are stored anywhere. Are they stored somewhere after compilation?


The .hex files are stored in a temporary directory until the upload finishes. 

There is an option you can add to preferences.txt to tell Arduino to NOT delete the files.  I think it's:


You then set build output to 'verbose' to get the name and location of the temporary directory.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


I had to "make visible" all folders and files to find the .hex file when I did what you are doing.  For some reason on my Mac it was putting the files in a hidden folder.
Arduino Uno;


The .hex files are stored (winxp) in directories like this one:
C:\Documents and Settings\your_username\Local Settings\Temp\build3526495849735274299.tmp
Each new build after opening the IDE is put into a new .tmp directory with "random" number in the name of the directory. So after few days you have there ~15 build.. (and console.., untitled..) dirs, which are mostly empty.
Frankly, I do not understand why an option for placing the hex file is not provided  :smiley-roll:


Frankly, I do not understand why an option for placing the hex file is not provided  :smiley-roll:

I'm guessing that 99.9% of Arduino users would never use that option because the Arduino IDE has no provision for uploading a pre-compiled .hex file.

It's not that hard to learn to do raw AVR programming using the compiler directly.  This gives you complete control of where you place your .hex file.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


easier way: http://www.thinkcreate.org/index.php/debug-arduino-with-proteus/  :smiley-mr-green:


Yes, that is exactly what we need  :)


Aug 26, 2012, 11:40 pm Last Edit: Aug 26, 2012, 11:50 pm by april Reason: 1

easier way: http://www.thinkcreate.org/index.php/debug-arduino-with-proteus/  :smiley-mr-green:

I'm not getting anything on that site . Is it still up?
Hm must be a temp thing google cache has it on search


I sometimes use the hex file, so I like to hold the shift key when I press the verify :) (I am not sure why they removed this from the Official 1.0.1)

So I can copy the path this way:

Another option is to edit your preferences file and add:
Code: [Select]

to dump your files there
My website: http://ried.cl


Thats a good one but Windows only it seems


Thats a good one but Windows only it seems

Works for me on Mac:

Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Sep 15, 2012, 10:29 pm Last Edit: Sep 15, 2012, 10:59 pm by april Reason: 1
Yes John Thanks
Silly me
Lines 50 or so in /Arduino/lib/preferences.txt
# temporary build path, normally this goes into the default
# "temp" folder for that platform (as defined by java)
# but this can be used to set a specific file in case of problems
Its also in /root/.arduino/preferences.txt

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