I have an Arduino Yún running Openwrt-Yún 1.5.3 (which is the latest version, as I upgraded yesterday), and I am trying to obtain a .hex (compiled sketch), so that I can upload a sketch directly into the Yún. I know about compiled sketches, but there are no build directories in "C:\Documents and Settings\MY_USERNAME\Local Settings\Temp".

Where can I obtain the .hex of any file I have compiled, and how?

  • Have you tried enabling verbose compilation? Feb 20, 2015 at 7:45
  • @IgnacioVazquez-Abrams - Yes: I know what the build is called and its location whilst I upload, but after I have uploaded, nothing.
    – user6867
    Feb 20, 2015 at 7:47
  • Compile the sketch and in log it is shown where the hex is stored. Then you have to copy from there, because its in temporary
    – Martynas
    Feb 20, 2015 at 8:46

1 Answer 1


As noted in comments, enable verbose compilation and look at the output to find the temporary-directory location. (Click File, Preferences, verbose compilation.)

Note, after you click File, Preferences and the preferences window appears with its half-dozen items, you should also see a note about directly editing preferences in the preferences.txt file. Edit that file (using a plain-text editor, not a word processor) when the arduino IDE is not running. Change the line




so the .hex files in the temporary directory have a better chance of sticking around.

(I'm not able to test this suggestion on an MS-Windows system. On my Linux system most build files stick around anyway in /tmp/)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.