Go Down

Topic: Arduino IDE and hex files ???? (Read 8172 times) previous topic - next topic


Does the arduino IDE produce a hex file when you compile/verify your sketch?

I have searched ALL the arduino directory and such a hex file does not exist.
I'm using Arduino IDE 0012Alpha

Don Kinzer

If you're using Windows, the build is done in a temporary directory with a name like "C:\Documents and Settings\<user name>\Local Settings\Temp\build63702.tmp".  You'll find the .hex file in that directory.  I'm not sure how helpful that is because the directory name changes (with each invocation of the IDE, I think).

Perhaps there is (or should be) a configuration option to allow you to specify the build directory.

ZBasic Microcontrollers


There are no files in the path the you mentioned that refer to arduino.
Any more ideas?


After playing around some more I found out the the hex file is indeed in the directory mentioned above only when the IDE is running. If the IDE is terminated then the files that are produced, after compiling your sketch, are deleted

hector albornoz

There are several options to have the hex file:
1. I'll compile the Blink with Arduino 0021 328p, then look in the folder "C: \ Documents and Settings \ Camilla \ Local Settings \ Temp" if I think the "build5475070713267856618.tmp" as a new folder (if you are unsure, reviewed by date and time), admission to this last folder and find the file there Blink.cpp.hex.
2. the other option that should be easier I have not been able to work properly.

 Turns on an LED on for one second, then off for one second, repeatedly.

 This example code is in the public domain.

void setup() {                
 // initialize the digital pin as an output.
 // Pin 13 has an LED connected on most Arduino boards:
 pinMode(13, OUTPUT);    

void loop() {
 digitalWrite(13, HIGH);   // set the LED on
 delay(1000);              // wait for a second
 digitalWrite(13, LOW);    // set the LED off
 delay(1000);              // wait for a second



Héctor Albornoz


Oah old Thread revival ^^
Well because the answer is still open somehow:

I only get a hexfile after compiling AND trying to upload the sketch (without connected Arduino) and with Windows 7 32Bit the folder is:

I'm usung the ArduinoIDE 0018 btw.

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