{"id":936,"date":"2015-08-04T13:42:56","date_gmt":"2015-08-04T12:42:56","guid":{"rendered":"http:\/\/www.kanda.com\/blog\/?p=936"},"modified":"2024-01-11T12:46:52","modified_gmt":"2024-01-11T11:46:52","slug":"find-arduino-hex-files-output-binaries","status":"publish","type":"post","link":"https:\/\/www.kanda.com\/blog\/microcontrollers\/avr-microcontrollers\/find-arduino-hex-files-output-binaries\/","title":{"rendered":"Where to find Arduino Hex files or Output Binaries"},"content":{"rendered":"
You can use a normal AVR ISP programmer to upload Arduino sketches to an Arduino board or to an AVR microcontroller in your own circuit, such as ATmega328P, ATmega8 or ATmega2561, but first you need to know how to find the hex files that the programmer needs. The Arduino IDE makes this as hard as possible for some reason. This post shows you how to find them and also how to make Arduino put them in an easier place to find in future.<\/p>\n
<\/p>\n
Any ISP will need what Arduino calls output binaries and the rest of the world calls HEX files. These are produced when you Verify\/Compile your sketch and contain the data the AVR microcontroller needs to run. The Arduino IDE creates them in temporary folders in your user libraries or \/tmp folders on MAC, with a typical path like this<\/p>\n
C:\\Documents and Settings\\your_username\\Local Settings\\Temp\\build3526495849735274299.tmp.<\/p>\n
This changes with every build, which makes it really difficult to locate them, especially the most recent version. A better way is to change the Build Path in Arduino so it puts them somewhere sensible.<\/p>\n
The method has changed in Arduino 2.0 so see later section for this version<\/p>\n
Run Arduino IDE <\/strong>and choose File -> Preferences<\/strong>. This dialog box will appear,<\/p>\n