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