Pages: [1]   Go Down
Author Topic: .hex file path  (Read 7302 times)
0 Members and 1 Guest are viewing this topic.
Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2066
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Full Member
***
Karma: 4
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 203
Posts: 8722
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:

export.delete_target_folder=false

You then set build output to 'verbose' to get the name and location of the temporary directory.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 289
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Arduino Uno;
Mega328

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2066
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
p.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 203
Posts: 8722
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

universe
Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
I'm enjoying my Life
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2066
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that is exactly what we need  smiley
Thanks!
Logged

0
Offline Offline
Full Member
***
Karma: 4
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not getting anything on that site . Is it still up?
Hm must be a temp thing google cache has it on search
« Last Edit: August 26, 2012, 04:50:11 pm by april » Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I sometimes use the hex file, so I like to hold the shift key when I press the verify smiley (I am not sure why they removed this from the Official 1.0.1)
http://arduino.cc/forum/index.php/topic,118440.0.html

So I can copy the path this way:
http://screencast.com/t/JsuttIxWqw

Another option is to edit your preferences file and add:
Code:
build.path=C:\folder

to dump your files there
Logged

My website: http://ried.cl

0
Offline Offline
Full Member
***
Karma: 4
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thats a good one but Windows only it seems
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 203
Posts: 8722
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thats a good one but Windows only it seems

Works for me on Mac:
Quote
build.path=/Users/john/Documents/Arduino/build
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Full Member
***
Karma: 4
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
build.path=/build
Its also in /root/.arduino/preferences.txt
« Last Edit: September 15, 2012, 03:59:03 pm by april » Logged

Pages: [1]   Go Up
Jump to: