AVR Tutorials
The Best AVR Microcontroller Tutorials on the Web

Generating the HEX file in AVR Studio 6

The AVR Hex File


This AVR tutorial discuss how to generate or create an hex file in AVR Studio 6. We will be generating/creating the hex file for the AVR C code shown in the AVR Studio 6 editor below.

AVR Studio 6 Editor

After typing your AVR program may it be C or assembly to generate the hex file go to Build menu and click Build Solution. See the figure below.

AVR Studio 6 Build

If the AVR C or Assembly program was build successfully a message will display at the bottom of the AVR Studio 6 Editor indicating that Build succeeded. See the bottom of the figure below. Also to the left of the editor if you expand the output folder you will see a file with a .hex extension. This is the actual HEX file that was generated.

AVR Studio 6 Build

You can view the content of the generated hex file by double clicking on the file with the .hex extension in the Solution Explore to the left of the AVR Studio 6 editor. The hex file that we just generated is displayed in the AVR Studio 6 Editor shown in the figure below.

AVR Hex file

AVR Tutorials hope this AVR Studio 6 tutorial on generating / creating an AVR HEX file was benificial to you and looks forward to your continued visit for all your microcontroller tutorial needs.