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 5 Editor indicating that Build succeeded. See the bottom of the figure below.
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 5 editor. The hex file that we just generated is displayed in the AVR Studio 5 Editor shown in the figure below.
AVR Tutorials hope this AVR Studio 5 tutorial on generating / creating the AVR HEX file was benificial to you and looks forward to your continued visit for all your microcontroller tutorial needs.