Go Down

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

tolisn

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

ZBasic Microcontrollers
http://www.zbasic.net

tolisn

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

tolisn

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.

/*
 Blink
 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
}

HEX


:100000000C9461000C947E000C947E000C947E0095
:100010000C947E000C947E000C947E000C947E0068
:100020000C947E000C947E000C947E000C947E0058
:100030000C947E000C947E000C947E000C947E0048
:100040000C949A000C947E000C947E000C947E001C
:100050000C947E000C947E000C947E000C947E0028
:100060000C947E000C947E00000000002400270009
:100070002A0000000000250028002B0000000000DE
:1000800023002600290004040404040404040202DA
:100090000202020203030303030301020408102007
:1000A0004080010204081020010204081020000012
:1000B0000007000201000003040600000000000029
:1000C000000011241FBECFEFD8E0DEBFCDBF11E08E
:1000D000A0E0B1E0E2EFF3E002C005900D92A030A5
:1000E000B107D9F711E0A0E0B1E001C01D92A9303D
:1000F000B107E1F70E94F0010C94F7010C940000A5
:100100008DE061E00E949C0168EE73E080E090E089
:100110000E94E2008DE060E00E949C0168EE73E0C6
:1001200080E090E00E94E20008958DE061E00E948E
:10013000760108951F920F920FB60F9211242F93FC
:100140003F938F939F93AF93BF93809104019091BE
:100150000501A0910601B0910701309108010196B7
:10016000A11DB11D232F2D5F2D3720F02D57019696
:10017000A11DB11D209308018093040190930501F6
:10018000A0930601B09307018091000190910101B5
:10019000A0910201B09103010196A11DB11D8093B0
:1001A000000190930101A0930201B0930301BF915C
:1001B000AF919F918F913F912F910F900FBE0F9014
:1001C0001F9018959B01AC017FB7F89480910001B6
:1001D00090910101A0910201B091030166B5A89B25
:1001E00005C06F3F19F00196A11DB11D7FBFBA2F49
:1001F000A92F982F8827860F911DA11DB11D62E0A0
:10020000880F991FAA1FBB1F6A95D1F7BC012DC08B
:10021000FFB7F8948091000190910101A091020133
:10022000B0910301E6B5A89B05C0EF3F19F0019618
:10023000A11DB11DFFBFBA2FA92F982F88278E0FA0
:10024000911DA11DB11DE2E0880F991FAA1FBB1FC0
:10025000EA95D1F7861B970B885E9340C8F2215030
:1002600030404040504068517C4F211531054105D8
:10027000510571F60895789484B5826084BD84B583
:10028000816084BD85B5826085BD85B5816085BD91
:10029000EEE6F0E0808181608083E1E8F0E01082AA
:1002A000808182608083808181608083E0E8F0E0EB
:1002B000808181608083E1EBF0E0808184608083D5
:1002C000E0EBF0E0808181608083EAE7F0E080810C
:1002D000846080838081826080838081816080836C
:1002E0008081806880831092C1000895482F50E07B
:1002F000CA0186569F4FFC0124914A575F4FFA016D
:1003000084918823C1F0E82FF0E0EE0FFF1FE85939
:10031000FF4FA591B491662341F49FB7F8948C9157
:10032000209582238C939FBF08959FB7F8948C915A
:10033000822B8C939FBF0895482F50E0CA018255AD
:100340009F4FFC012491CA0186569F4FFC013491B6
:100350004A575F4FFA019491992309F440C0222330
:1003600031F1233021F4809180008F7705C0243053
:1003700031F4809180008F7D8093800018C02130FF
:1003800019F484B58F7704C0223021F484B58F7DB1
:1003900084BD0DC0263021F48091B0008F7705C058
:1003A000273029F48091B0008F7D8093B000E92F31
:1003B000F0E0EE0FFF1FEE58FF4FA591B4916623BA
:1003C00041F49FB7F8948C91309583238C939FBF11
:1003D00008959FB7F8948C91832B8C939FBF0895B9
:1003E0000E943B010E9495000E948000FDCFF8947E
:0203F000FFCF3D
:00000001FF


Héctor Albornoz

fujii

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:
C:\Users\Username\AppData\Local\Temp\buildRandomnumbers.tmp\Blink.cpp.hex

I'm usung the ArduinoIDE 0018 btw.

Go Up